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

learn more… | top users | synonyms

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
4k 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
3answers
11k 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
420 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. ...
16
votes
4answers
10k 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
358 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?
12
votes
4answers
4k 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
3k 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
445 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
687 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 ...
0
votes
4answers
2k views

Cannot use scp on Mac OS X

when I try to copy any file with scp on Mac OS X Snow Leopard from another machine I get this error: scp me@192.168.1.10:/home/me/file.zip . Password: ... ---> Couldn't open /dev/null: Permission ...
1
vote
4answers
8k views

Accessing a URL on SSH without using a web browser

I would like to find a way to open a URL without using a web browser (which makes my computer system run very slow). Is there an easy way to achieve this on a command prompt using SSH to access ...
33
votes
6answers
37k views

scp to remote server with sudo

I have a file on server A (which is behind a NAT so not directly addressable). The file needs to be copied to server B in a directory restricted to root. I have an account on server B with sudo ...
74
votes
2answers
73k views

What's the difference between scp and sftp?

Usually, I use the scp command to transfer files on *nixes. What's the difference between SFTP and SCP? Don't they both work on SSH?
6
votes
3answers
3k 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 ...
5
votes
1answer
4k 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
102 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 ...
9
votes
3answers
10k 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. ...
13
votes
5answers
17k 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
53 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
13k 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 ...
1
vote
3answers
14k 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
12k 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 ...
2
votes
2answers
4k views

How do I 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 ...
8
votes
4answers
11k 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
1k 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 ...
4
votes
4answers
11k 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
3k 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 ...
15
votes
11answers
55k views

WinSCP client for Ubuntu [closed]

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
3k 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 ...
6
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?
22
votes
3answers
27k 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 ...
2
votes
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
141 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
386 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 ...
3
votes
3answers
8k 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 ...
6
votes
4answers
2k views

Unable to use scp with a bash alias

This 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 do I solve this ...
32
votes
17answers
45k 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 ...
4
votes
12answers
3k 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 ...
20
votes
7answers
21k 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 ...
45
votes
15answers
70k 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 ...