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

learn more… | top users | synonyms

3
votes
2answers
1k views

scp through intermediate server

I need to copy a file from a computer I can only access via SSHing into an intermediate computer. Home -> server.com -> cluster.com I'm trying to copy from cluster.com to home. I can ssh from ...
2
votes
3answers
2k views

Any faster scp or rsync?

How can I transfer a large file quickly, when I don't really require a secure connection? Often I would like to copy a large file from local machine to remote machine. The file does not already ...
2
votes
1answer
453 views

Why does cygwin's scp set the permssions to 000 when copying to Linux?

When I'm copying files from my Windows box to a Linux box using cygwin's scp, the permissions come out as 000. This doesn't happen when I copy from Linux to Linux, so I'm thinking it's related to some ...
1
vote
2answers
565 views

Mapping sftp/scp as a drive letter without user logins

I'm trying to find a software which could map sftp/scp services to a windows drive letter. I know there are quite a bunch of those available, but i haven't found a single one which could run with ...
1
vote
3answers
2k views

scp certain files only

I am trying to copy changed files to godaddy via ssh. Godaddy is terrible and so they of course do not allow rsync. I can use scp, but I really only want to copy changed files. I don't think this is ...
1
vote
1answer
1k views

can't scp a named pipe

I am trying to encrypt a file on-the-fly, redirecting the output to a named pipe [fifo]. I SSH into my server and run the command: $ mcrypt -k key < file > named_pipe then from ...
11
votes
7answers
5k views

Linux: Continuously synchronize files, one way

Scenario: An IDE is set up on a Linux desktop box, editing PHP files locally. Every time I save a file, I want this change to appear on the linux server where Apache is running. The server has ssh ...
8
votes
3answers
4k views

SCP between two networks

I need to transfer a file between two computers that are not connected to the same network. I got a third computer that can see both networks through a VPN. From the third computer, I can do: scp ...
1
vote
2answers
2k views

How to feed grep output into scp?

I have a file where each line is a file name. Content of the file: file1 file2 file3 ... I then run a grep command to get a subset of the list of the file names. How do I feed the output of the ...
1
vote
1answer
939 views

Is there a way to bypass a proxy using SCP?

How can I use SCP to copy a file from my local machine to a remote server, bypassing the proxy? When I use scp -r <my_folder> <remote_user>@<remote_machine>:/home/test it gives the ...
3
votes
4answers
4k views

How to copy from 1 computer to another computer with Linux shell commands?

I want to copy a file (home/remote_computer_user/Desktop/test1.txt) from my remote office computer (a permanent URL + open port) to my home computer (home/home_computer_user/Downloads/). How can I do ...
0
votes
1answer
1k views

Connecting to different ports via scp and ssh - why a different flag?

I routinely run sshd on a non-standard port (ie, not 22). When ssh-ing to my machine I use the -p flag. However, when using scp, the flag is -P (lowercase vs uppercase). Since they come out of the ...
0
votes
2answers
662 views

scp to remote server message.."Hello, I'm freeFTPd 1.0

I'm trying to scp files from a Linux box to a remote server, but after i put the root password for the server, it gives the message "Hello, I'm freeFTPd 1.0" I tried using put command but nothing is ...
0
votes
2answers
303 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 ...
2
votes
4answers
1k 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
150 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 ...
7
votes
3answers
7k 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.
8
votes
4answers
4k 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
327 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
74 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 ...
11
votes
3answers
5k 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
371 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
451 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?
2
votes
4answers
5k 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
588 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/ ...
2
votes
1answer
305 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
445 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 ...
5
votes
4answers
7k 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 ...
8
votes
1answer
5k 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
8k 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
154 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
524 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
4k 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
221 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
4k 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
14k 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
727 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
882 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
542 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
539 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
6k 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
2k 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
959 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 ...
2
votes
4answers
13k views

transfer file from unix to windows?

i want to transfer file from unix server to windows 2003 server i download copssh on windows 2003 and openssh is already installed in unix ... i execute the following command :- scp -r /file_in_unix/ ...
1
vote
4answers
298 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. ...