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

learn more… | top users | synonyms

0
votes
2answers
845 views

scp works from command line but not from shell script - permission denied

I'm migrating some home folders from one Linux box to another using scp. I've saved my public key into the destination box's authorized_keys file and the following command works perfectly when I type ...
4
votes
3answers
11k views

scp a single file to multiple locations

Can you scp a file to multiple locations in the same command? For example: scp file.txt user@ip-1.com:, user@ip2.com: Or would it be more practical to create a bash script that has all the hosts ...
3
votes
1answer
1k views

Don't copy files that cause an input/output error

When copying files from a faulty hd with cp, rsync, or scp, the faulty files which can't be read anymore are also partly copied to the destination directory. Is there an option to automatically skip ...
0
votes
1answer
329 views

How to use scp to transfer files from WAN to LAN

I have machine A with a public IP address (addr_a), machine B within a LAN of private IP address(addr_b), the router of the LAN has a public IP address (addr_r). If I log into machine A by ssh from ...
2
votes
5answers
44k views

How do I transfer a file to my server using PuTTY?

when calling SCP in PuTTY on my Win7 box, it doesn't let me use C:/, but I also have no idea where on my local machine it will look for files by default. None of program directory or user directory ...
0
votes
1answer
442 views

scp to server with encrypted home directory

I am setting up an ubuntu server to use as remote backup and I plan to use rsync to keep it up-to-date. I've encrypted the home directory though, which now prevents direct connection using standard ...
29
votes
2answers
87k views

How do I SCP from remote machine to local machine when I am outside of my home network?

While I understand how to scp files to and from my server from within my home network, how can I scp a file from my server to my local machine when I am on the outside, say at Starbucks? While I am ...
10
votes
5answers
3k views

Windows equivalent of SSH

I don't know Windows very well and only vaguely know my way around the Command Prompt. Is there an equivalent to SSHing into another Windows computer via cmd? Equivalents to SCP and other Linux ...
3
votes
2answers
2k 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
3k 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
2answers
747 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
656 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
3k 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 ...
27
votes
7answers
10k 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 ...
11
votes
3answers
6k 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
3k 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
1k 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
5k 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 ...
1
vote
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
1k 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
380 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 ...
4
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
170 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 ...
18
votes
4answers
13k 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.
12
votes
5answers
6k 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
355 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
86 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 ...
21
votes
4answers
9k 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
407 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
535 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
7k 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
858 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
417 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
618 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
9k 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
7k 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
2answers
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.
5
votes
1answer
10k 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
175 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
686 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
6k 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
230 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
2answers
6k 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
19k 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 ...