SCP (Secure Copy) is a secure protocol based on SSH used for transferring files between computers.

learn more… | top users | synonyms

5
votes
3answers
2k views

Linux: Alternative to rsync? (ie, scp with resume)

I've been using rsync to automatically send files from one box to another, which is great compared to scp, since it supports resuming. However, when resuming a very large file (>10gb) rsync has to ...
4
votes
1answer
3k views

Can I make scp ask before overwriting an existing file?

Is there a possibility (man scp didn't reveal any) to make scp interactive like cp -i? That is, scp asks, if the target exists, if it may overwrite it? If yes, does it work locally and remote? If ...
2
votes
1answer
98 views

Weird scp behavior

I am trying to scp a file but it returns immediately with the DATE and not file is copied: [cosmo] Downloads > scp V17530-01_1of2.zip bryan@elphaba:Downloads bryan@elphaba's password: Sat Apr 10 ...
7
votes
3answers
8k views

Is it possible to rate-limit an scp/sftp/rsync/etc transfer from the command-line? ie, manual QoS on a single command?

Specifically, I am looking to rate-limit an scp or sftp session (or other arbitrary network call) in the call itself. For example, let's say I want to copy 100MB to one server, and 1GB to another. ...
8
votes
4answers
11k views

How can I copy multiple files over scp in one command?

I have to transport a lot of files from one PC to another (both Linux). I would like to use scp for that, but scp only allows for transferring one file at a time. How can I do this? I have No ...
1
vote
2answers
1k views

Run scp as ubuntu@ copying to Ubuntu system with correct permissions?

I ssh into a ubuntu box with username "ubuntu" and I can become root without entering a password via "sudo su". How can I scp files onto this box using the ubuntu@ username? It does not allow me to do ...
0
votes
1answer
1k views

Tab complete SCP with password

Is there any way to get tab completion to work in an SCP command if the target machine is behind a password? I'm working in Terminal on OSX.
0
votes
0answers
52 views

Second posting of: scp error: “Permission denied (publickey). lost connection” [duplicate]

Possible Duplicate: scp error: “Permission denied (publickey). lost connection” This posting is a reposting of: scp error: "Permission denied (publickey). lost ...
3
votes
6answers
10k views

SSH from Windows to Linux without entering a password

I am trying to use ssh/scp from Windows to Linux without having to enter a password. This is what I have done, and it doesn't seem to work: generated public and private keys using Putty Key ...
0
votes
2answers
12k views

scp error: “Permission denied (publickey). lost connection”

I tried to scp an svn dump to savannah, but I got the following error at the end. Permission denied (publickey). lost connection The scp command and verbose output are below. Any ideas? ...
1
vote
2answers
2k views

Copying files through an SSH Proxy

I want to copy some files from remote machine at work, but I can't ssh to the machine directly, I login via an SSH proxy which presents menu of hosts to connect too, I choose the machine I want and ...
4
votes
2answers
9k views

How to perform SCP as a Sudo user [duplicate]

Possible Duplicate: scp to remote server with sudo What is the best way of doing SCP from one box to the other as a sudo user. There are two servers Server A 10.152.2.10 ...
0
votes
2answers
3k views

How to replicate the directory structure to a remote Linux server

I want to replicate a complex directory structure from one Linux server to another remote server start at a certain sub-directory. I don't want the contents of the files, I just want to preserve the ...
7
votes
4answers
9k views

SCP from one external server to another

I am trying to use SCP on my local server to copy a file from one remote server to another remote server (both remote servers use a custom port (xxxx) I am trying: scp -r -P xxxx ...
0
votes
4answers
2k views

scp a little slow? windows vm ubuntu and mac leopard

I am running ubuntu under VMware. I connected my USB drive directly to ubuntu instead of through windows XP and i started transferring files from my mac leopard to ubuntu/usb HD Most of the time the ...
2
votes
2answers
927 views

How using ssh/scp between non-public machines

I am often in the following situation: I have two machines, A and B, which are on LANs, and have non-public IP addresses. Machine C is on the same LAN as B, but publicly visible. I would like to copy ...
2
votes
3answers
2k views

Can I have ssh without scp also?

A project I'm on requires I upload some files to a vendor's remote server. I requested a secure connection, and suggested scp or https or sftp. In response, they stated they could grant me ssh ...
3
votes
4answers
8k views

I would like to pipe output of find into input list of scp, how?

I'm a novice linux user and I am trying to send a long list of files from one computer to another. The argument list is too long, so I am using find. I am having trouble setting up the expression, ...
2
votes
6answers
2k views

Is there a way to tell if a file is done copying?

The scenario is this: Machine A has files I want to copy to Machine C. Machine A can't access C directly, but can access Machine B that can access Machine C. I am using scp to copy from Machine A to ...
14
votes
10answers
46k views

WinSCP client for Ubuntu

Are there any GUI clients for Ubuntu which can remotely connect to another Linux box over SCP? I heard about the fish:// protocol and Konqueror (which is for Kubuntu using KDE), but I am looking for ...
0
votes
2answers
2k views

how do I copy files from a remote host to my computer?

I am trying to use the following command: $ scp remoteusername@host:$HOME/fileiwanttocopy /my/local/comp I woould like for home to be evaluated on the remote host instead of my computer (which it ...
4
votes
2answers
2k views

scp hangs at 100%, before finishing

my scp commands do hang at 100% before the finish (some seconds), The output I get using -vvv is this: http://paste.pocoo.org/show/137504/ Any ideas?
18
votes
3answers
21k views

scp -r … but leave out (exclude) a specified subdirectory

Here's the directory structure: /a/ /a/b/ /a/c/ I want to copy everything, EXCEPT for the /a/c/ subdirectory. scp -rp myserver:/a . # this will copy everything Q: How would I specify a ...
1
vote
2answers
2k views

Homeserver for the command “scp user@server:file localhost@server:mycomp/”?

Problem: to get the cammond "scp file user@server:" (source) work vice versa. I need a server on my local machine so I can copy files to-and-fro like: ROOT+SERVER+FILE <---- Commands? ...
2
votes
3answers
128 views

Information to the snippet: “scp user@hostb:file user@hostc:”

Suppose you have root access in an unknown server. You want to copy a file from the server to your local machine. Source of the snippet in the title. Challenge: copy to a file from the unknown ...
1
vote
4answers
367 views

How do I connect to an SSH server from Ubuntu?

I've been given this information (changed to protect the innocent): Hostname: secret_server.homeserver.org Port: 4033 Username: user Password: $ecrectP#ras3 Protocol: scp I don't have to have a ...
2
votes
3answers
6k views

Copying remote file to a specified path on local desktop using scp

I was trying to copy a file from remote server using SCP but its giving the following error. bash-3.2$ scp username@server:main.php C:\main.php ssh: Could not resolve hostname C: hostname nor ...
3
votes
4answers
2k views

Unable to use scp with a bash alias

The code does not work scp ~/Desktop/favicon.ico nameOfBashAlias:/public_html/mySite/templates/blog/ The alias is alias nameOfBashAlias='ssh myUsername@11.11.11.111' How can you solve the ...
25
votes
15answers
33k views

Best way to copy millions of files between 2 servers

I have roughly around 5 million small (5-30k) files in a single directory that I would like to copy to another machine on the same gigabit network. I tried using rsync, but it would slow down to a ...
3
votes
11answers
2k views

How do I push a file from a Linux box to a Windows Box?

How do I push a file from a Linux box to a Windows Box? Which versions of Windows have a built-in SSH server that a Linux box can "scp" (secure copy/ssh) to. I'm looking at freesshd right now. Any ...
14
votes
7answers
14k views

Change permissions upon uploading with scp

I am uploading files to my shell account using scp. As I need different permissions on the server than on my computer, I'd like to have a way to easily change the permissions upon upload without ...
36
votes
14answers
54k views

Map remote drive in Windows over SSH

Does anyone know of a good (hopefully free) tool that can be used to map a Linux server accessible over SSH/SCP as a Windows network drive? EDIT: SFTP not supported EDIT2: Windows File Sharing/Samba ...