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

learn more… | top users | synonyms

0
votes
2answers
346 views

Writing script for mac (scp alias with default params)

I have got to write this lines often: # from project1 dir scp app/models/user.rb root@mydomain.com:/var/www/project1/app/models # from project2 dir scp app/views/posts/index.html.erb ...
3
votes
4answers
2k views

How can I know if a given file has finished uploading from another location?

Let's say we have machine 1 and machine 2. Machine 2, which is linux based, is receiving a file (let's say cat.jpg sent via SCP from machine 1 (doesn't really matter which operating system..). How ...
2
votes
1answer
162 views

copying files by using cat on a network interface ?

when using scp to copy files over ssh connection , it can be sometimes quite slow for me (a 12 meg file takes 1 or 2 minutes). once i saw a guy cancel a copy that was going too slow, and then copy it ...
13
votes
4answers
11k views

How to copy a file without using scp inside an ssh session?

I have logged on to a system with ssh and there is no scp present on both the systems. How to copy a file without using the scp program.
11
votes
5answers
5k views

Is it possible to SCP from a remote to local whilst logged into the remote and without knowing the local's IP address?

I regularly find myself wanting to copy a file from remote terminal session to my local machine. Usually I log out of the remote session and call an scp transfer from local to copy the file from ...
0
votes
1answer
1k views

how to move files from one server to another server using scp?

I am trying to move uploaded file to another server using scp. following is the script i am using and error; "mv.sh" #!/bin/sh now=$(date +"%y-%m-%d-%M") cd /var/www/upload if [ -f ...
3
votes
2answers
344 views

Ubuntu - Problem with SCP / Git / Rsync

I'm having a really weird problem. For some reason, I can't scp, rsync, git pull or git push files larger than 1406 bytes. I can clone an entire repo no problem. I have no idea how to troubleshoot ...
1
vote
1answer
80 views

Copying 6GB file with scp finishes at 1.8GB

G:\>ssh phrogz@phrogz.net phrogz@nematode:~$ cd /backup/ phrogz@nematode:/backup$ la total 6057228 drwxr-xr-x 2 root root 4096 2011-04-21 10:25 ./ drwxr-xr-x 24 root root 4096 ...
19
votes
3answers
7k 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
6answers
395 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
501 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
6k 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
746 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
366 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
552 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 ...
6
votes
4answers
8k 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
6k 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 ...
0
votes
1answer
2k 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.
4
votes
1answer
9k 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
166 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 ...
2
votes
1answer
604 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 ...
3
votes
2answers
5k 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
228 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
2k 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 ...
3
votes
0answers
5k 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 ...
1
vote
3answers
17k 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
2k 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
854 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
962 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
600 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 ...
1
vote
4answers
619 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.
6
votes
2answers
7k 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
3k 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 ...
2
votes
1answer
1k 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 ...
3
votes
4answers
16k 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
299 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. ...
20
votes
6answers
20k 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
5k 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 ...
8
votes
4answers
17k 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 ...
1
vote
3answers
4k 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
718 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 ...
9
votes
3answers
11k views

Allow incoming SCP connections on Mac

How can I allow incoming scp connections on my mac (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. ...
4
votes
3answers
443 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
14k 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 ...
22
votes
7answers
16k 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 ...
3
votes
2answers
6k 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
975 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
2answers
3k 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 ...
2
votes
2answers
9k 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 ...