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

learn more… | top users | synonyms

28
votes
4answers
17k views

scp files via intermediate host

I have access to 3 machines, A, B, and C. The only possible (ssh) connections are: A -> B B <-> C I need to get files from A to C, so I could scp the files from A to B, and then scp them ...
2
votes
7answers
456 views

I installed Ubuntu on my parents computer. Besides SCP, is there a lazy way to drag and drop movies from my computer to theirs?

I installed Ubuntu on my parents computer. Besides SCP, is there a lazy way to drag and drop movies from my computer to theirs? Should I use a virtual desktop? maybe a nautilus plugin or maybe scp ...
1
vote
2answers
611 views

SSH transfer speed over a LAN network

When using ssh, will my files be sent over the internet or over the LAN network? How to configure correctly?
3
votes
5answers
9k views

SCP from remote Linux system to Windows

I'm on ssh accessing my user account at school. I'm trying to download a particular file from my linux account to my current windows file system that Im on right now. Can i use scp? If yes Id really ...
1
vote
3answers
1k views

scp using a lots of memory

I'm running into a problem with scp under some conditions that are associated with transferring multiple GB files to a SUSE® LINUX Enterprise Server 9 (kernel 2.6.xx) system on an SGI Altix350 w/ ...
3
votes
1answer
531 views

Changing the auto-save frequency when editing files via Tramp / SSH

I am using Emacs (23.3.1) with Tramp to edit files on a remote SSH server. Right now these files are being auto-saved / auto-uploaded about once every minute. During each upload, anything I type does ...
1
vote
3answers
845 views

Easiest way to automatically copy files between computers

I am trying to write a script which will essentially copy and file in a certain folder to a folder on another computer. My first thought was SCP, but I don't know if I can automate SCP by adding a ...
7
votes
4answers
11k views

bash: using scp in cron job fails, but runs succesfully when run from command line

I am trying to use scp in a bash script run by cron (I am running this on Ubuntu 10.0.4 LTS). The script works fine (i.e. transfers and copies file1 and file2 to/from the remote server, when I run it ...
11
votes
1answer
9k views

Reverse SCP over SSH connection

I pretty often need some file from some server when I'm on my laptop. But if I don't know where that file is, I have to ssh into the server, look around, exit, and then scp server:file .. If I'm ...
2
votes
3answers
4k views

how do I copy from a remote linux machine to a local linux machine?

I sshed to a remote machine and want to copy some files from there to my local machine. Both are running linux. My local machine is behind a firewall, so I can't do "scp file_on_remote user@...
0
votes
2answers
3k views

scp protocol error: bad mode

when I try a scp transfer I get this error: protocol error: bad mode PD: I can establish a ssh connection.
7
votes
2answers
16k views

Is there a tool like WinSCP for MacOS?

I used to use WinSCP to log into my remote server. I need to login with an ssh key and move the files from and to the remote server. So far I have not find any tool with the same features for MacOS. ...
1
vote
2answers
210 views

Secure copy in Linux

I wanna simpy exchange 3 directories to a collegue's home directory (I dont have write access to that one) from my home directory, probably using secure copy if possible. I am not good with Linux ...
3
votes
1answer
972 views

scp after 100% takes a long time [duplicate]

Possible Duplicate: scp hangs at 100%, before finishing I scp a file from my local machine to an amazon machine. The file get transfered fine, but after it gets to 100% transfered it takes a ...
4
votes
2answers
7k views

scp a folder to my ubuntu server

I have a folder on my mac that I need to move over to my server. I can ssh in the server but how do i get this folder up.... say I am on my local computer and the folder is named shared and I want to ...
1
vote
2answers
234 views

Questions about using scp

In a previous post, I asked a question about simply right-click copy and paste in Nautilus sometimes cannot handle files with special characters in their names under Ubuntu. Later I found that scp ...
0
votes
1answer
3k views

scp gives “Permission denied (publickey,gssapi-with-mic,password)”

I'm having a remote server running SSH, I use the scp from my local computer like this: scp filename.txt username@IP:Port:home/username it asks for the password, I supply it, he doesn't accept it for ...
5
votes
0answers
6k views

scp exec request failed on channel 0

I am trying to scp files from one computer to another however I get a "exec request failed on channel 0". When I use ssh however, I can get to the machine with no problems. I am using the scp function ...
5
votes
2answers
11k views

scp + copy the same links

Why does the scp command not copy links from the local computer to the other? scp -rp dir linux:/dir_target How can I copy the links when in the source directory I have both files and links?
1
vote
3answers
24k views

copy file from one Linux machine to another in a intranet

I used the command: scp filename.c user@172.100.102.187:/user/pradeep Here I want to copy file to 172.100.102.187 in /user/pradeep but it gives a error: scp: /user/pradeep: No such file or ...
2
votes
5answers
3k views

OSX SSH rsync - Keep remote directory up to date

I come primarily from a Windows background, migrating over to Mac. I've used WinSCP and loved a featured called "Keep Remote Directory Up To Date". Here's the question: is there an equivalent SCP ...
2
votes
2answers
1k views

Virtual Box and SSH

I have a production server off site and a development server as a virtualbox on my laptop. My question is how do I setup virtualbox's network before booting the image so that I can SSH between the ...
0
votes
2answers
1k views

Running bash script that uses ssh and scp (prompts for password) securely

I am manually carrying out a series of files which involves generating files on my local machine and then copying them over to a remote machine. Currently, I use scp and ssh to perform these tasks. ...
0
votes
2answers
700 views

How to move files from my web server to my (local) dev machine?

I am running a headless Linux Ubuntu 10.0.4 on my server. I only allow access to the server using ssh (and scp). I have a dev machine situated at home (behind a firewall) and I am able to copy files ...
2
votes
4answers
847 views

Do all servers equipped with sftp have scp?

I'm wondering if I can make the assumption that I can get a file using scp on any server that I could get the file using sftp.
7
votes
3answers
11k views

why is WinSCP so slow

the interface is handy but the file transfer rate is freakishly slow compared to pscp or scp in my VM on the same windows machine. i'm only getting about 17kb/s when my overall connection speed can go ...
0
votes
2answers
5k views

scp all files ending '-123.jpg' - recursion, spaces, wildcards …

There's too much going on for me to get my noobie head around here. I'm wanting to download all files that end -123.jpg from a multitude of nested directories on a remote server. Some of these ...
3
votes
1answer
2k views

Transferring large files using scp with CPU and memory considerations

I want to transfer an arbitrarily large file (say >20GB) between 2 servers. I have several considerations: Must use port 22 (ssh) because of firewall restrictions Cannot tax the CPU (production ...
4
votes
5answers
29k views

How can I transfer files from UNIX to Windows?

I want to transfer a file from a UNIX server to a Windows 2003 Server, so I downloaded copssh onto the Windows server, and openssh is already installed on the UNIX server. When I execute the ...
1
vote
4answers
305 views

Sending files between computers [Cloud Server <-> Home Computer]

I'm using a cloud server which runs ubuntu, I can send files from my computer to the server using scp, but the opposite side doesnt work, I know it could be due to closed ports or something else. ...
37
votes
6answers
32k views

Why is rsync -avz faster than scp -r?

I'm a bit puzzled by this? Why is rsync faster than scp? Doesn't rsync use scp beneath or does it do something more efficient? Is there some way to speed up scp?
1
vote
1answer
6k views

cygwin cygdrive paths and Windows Command Prompt [duplicate]

Possible Duplicate: cygwin cygdrive paths and Windows Command Prompt I'm having a weird issue with cygwin acting inconsistently between installations, specifically scp. I have c:\cygwin\bin ...
9
votes
4answers
21k views

scp'ing multiple files in one pass - to multiple destinations on one target server?

I would like to scp about a half dozen files in a couple directories to the same directories on a target machine. Without utilizing ssh keys, is this possible in one call? For example: scp /path/...
1
vote
3answers
12k views

cygwin cygdrive paths and Windows Command Prompt

I'm having a weird issue with cygwin acting inconsistently between installations, specifically scp. I have c:\cygwin\bin in my Windows PATH in both cases. When I run the following command from a ...
5
votes
1answer
886 views

How to continue scp transfer from last file

I was transferring large files using scp, but I got this error: write failed: Broken pipe lost connection. Now I need to re-launch scp but tell it to continue from where it left off. I looked into ...
15
votes
3answers
22k views

Allow incoming SCP connections on Mac

How can I allow incoming scp connections on my Mac (OS X 10.6.4) from other machines on the same network? Every time I’m trying to scp something on the machine I get a Connection refused error. ...
5
votes
3answers
605 views

ssh: leave channel open for fast copies

I have a high latency connection to a remote system. I'm debugging a script on the remote system, and thus repeatedly copying a small file via scp. This is annoying because it has to re-authenticate (...
0
votes
3answers
22k views

how to copy a file from linux to windows with scp command?

I would like copy a backup file from image vmware linux to windows but I don't know how to process it? I tried: scp /source/backup.tar.gz admin@x.x.x.x:/c:\ProgrammefilesC:\Documentsand Settings\...
34
votes
10answers
30k views

Scp over a proxy with one command from local machine?

I have my local.machine, the proxy.machine and target.machine. local.machine doesn't have direct contact with target.machine, but needs to go through proxy.machine. I want to scp a file from target....
3
votes
2answers
11k views

How to use scp in a bash script without specifying password?

I am a bash newbie, and am writing a bash script that will allow transfer of files between two computers. BTW, is there a more secure alternative to scp? Currently, I am doing this manually, by using ...
1
vote
2answers
1k views

scp to local desktop remote server

I have a work computer that I can access using ssh on any computer. First I have to ssh into my work server. Then I have to ssh into the my work computer. It is super. However, I cannot figure out how ...
4
votes
4answers
5k views

WinSCP screws up line breaks in files – how do avoid?

I'm getting pretty sick of how WinSCP screws up line breaks. this is line 1 this is line 2 Gets turned into this is line 1 this is line 2 I could just use FileZilla for FTP and Putty for SCP (I ...
3
votes
3answers
15k views

SCP from Windows using the colon-inclusive full path

I'm trying to run SCP on my Windows box through a batch file. I want to do something like: scp "C:\myfile.txt" user@host:path Of course scp thinks that "C" is my source host and "\myfile.txt" is ...
0
votes
2answers
430 views

Unable to establish connection to server

Working in CentOS. Want to have drag-and-drop SCP access to another system. Opened up the file manager (nautilus) and went under File -> "Connect to Server". Filed in the information, hit connect. ...
27
votes
4answers
14k views

How do I scp the (huge) output of a command directly to a remote machine?

Note that I can't first store the file locally -- it's too big. This (obnoxious) page (scroll all the way to the bottom) seems to give an answer but I'm having trouble disentangling the part that's ...
1
vote
3answers
378 views

scp : file transfer

I missed typed by scp command - didn't give target remote directory. scp file root@remote-machine It didn't say any errors and I don't know whether file is transferred or not . what happened here?
13
votes
4answers
6k views

Resume recursive scp transfer (with rsync?)

I was transferring several thousand files each ~1MB via scp and my connection was broken after the first 2k files or so. I wanted to know if there was a way to resume the recursive transfer w/o ...
4
votes
2answers
4k views

SFTP, SCP, Secure Webdav: which is the most suitable?

currently, I am hosting a webdav share setup in order to store files I need anywhere I am. It is available via HTTPS. Things are that I do not need all the HTTP machinery -i.e. my nginx http server ...
3
votes
1answer
504 views

Prevent scp from copying local files?

I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying ...
0
votes
1answer
696 views

Linux scp command issue

I am using scp command to copy file from a MacBook Pro OS X 10.5 to another Linux box (Red Hat Linux Enterprise 5). I am using the following command on Mac, sudo scp ~/.ssh/mykey.rsa testuser@10.10....