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

learn more… | top users | synonyms

0
votes
2answers
103 views

If I scp a file through an intermediate server, is the file stored temporarily on the server?

For the sake of simplicity (I find it easier to remember names than arbitrary letters), I will dispense with letters and use names to refer to the machines in this scenario. Say I have two machines, ...
1
vote
1answer
1k views

scp -q isn't quiet between different hosts

So scp -q file host:file and scp -q host:file file are both quiet, i.e. don't give the progress meter. But when I run scp -q host1:file host2:file, I still get the progress meter as well as a ...
1
vote
1answer
2k views

Is there a way to pause an already running scp process?

I'm copying a large file using scp, and realized that the destination may not have enough space for it to finish. Is there a way I can pause it, possibly for several hours, and resume later? Also, if ...
1
vote
1answer
762 views

How to automating Putty Shell task on Windows 7?

I am interested in connecting by shell (Putty or another tool) (I have cygwin and OpenSSH ) This is what I wish to accomplish: Upload some files by scp (from Windows 7) Connect to the remote server ...
3
votes
0answers
581 views

scp no such file

I'm on mac osx getting a file from a remote server. I run the following command: scp remoteusername@remotehostip:/home/username/file.tar ./Users/localusername/Documents/specialdir I get the ...
0
votes
1answer
386 views

Is there an equivalent 'cp --backup=numbered' option for copies across the network?

I'm looking to simulate what cp --backup=numbered does using scp or another network copy command. Any suggestion?
2
votes
1answer
516 views

can i use PuTTY to transfer files to my PC?

i'm having trouble connecting to our cluster with winSCP can i use PuTTY as an alternative? How do i transfer files to my PC using PuTTY or some other alternative for winSCP?
1
vote
2answers
2k views

Copy data from a remote Linux box to my Windows desktop

I use Putty to login to the remote server and then set the environment and change the path to a particular directory. Now from this dir, I need to copy a folder to my desktop which is Windows? How ...
0
votes
3answers
309 views

Getting rysnc and scp to work well on Mac OSX

I am seeking to back up an encrypted volume used by Virtual Box on one OS X machine to another using rsync (I will eventually stick this into cron). This is the command line (I am sharing public keys ...
0
votes
1answer
183 views

Mac OSX OpenSSH file Transfer not working

I'm currently trying to get a file on my school account from home on my mac using SSH. I have the hostname and I can get in just fine, but transferring files is like smashing my head into a wall over ...
3
votes
1answer
76 views

SCP files to a server in LAN from WAN

I need to SCP a bunch of files from my local machine to a machine in a LAN via a machine with a public ip. Like this: my machine -> machine with public IP (XXX.XXX.XXX.XXX) -> machine with private ...
2
votes
4answers
1k views

How to ssh and scp directly through a server?

I connect to server2 in the following way: home$ ssh server1 server1$ ssh server2 server2$ I also sometimes need to scp this way, which takes some extra time: home$ ssh server1 server1$ scp ...
1
vote
1answer
181 views

How can I change directory back to client machine in ssh?

I'm trying to transfer files between a server and my mac using the terminal and SSH. If I haven't already logged into the server I can simply type: scp -r ...
0
votes
0answers
81 views

When I do SCP of big files my Mac becomes very sluggish

Whenever I try to use SCP to upload files to my server, performance goes down. It slows down so much that I cannot even see the mouse pointer. I have a MacBook AIR i5, with 4GB of RAM. I don't see a ...
2
votes
1answer
183 views

Does scp require ssh server/client

I previously had openssh-server/client installed on my machine. Doing scp -r folder/ users@host:/location/ worked fine. On my new installation without the ssh client/server fails. Do scp and ssh ...
4
votes
3answers
3k views

How do I SCP a file through an intermediate server?

I'm using Ccygwin on WinXP (with the bash shell). I want to SCP a file from my localhost to a remote machine -- host2. However, I can only SSH to an intermediate machine -- host1, and then from ...
1
vote
3answers
906 views

Need to transfer files(No SCP) from Linux to IBM-AIX

I need to transfer a tar.gz file from RHEL5 to IBM AIX... The IBM AIX does not have scp and I dont think, I could install, as I am just using the system for temporary purposes. Is there an alternative ...
0
votes
1answer
96 views

scp ing to several destinations with one password without public keys

I hope this isn't a duplicate question, I did do some research on this before posting. I have several directories locally, which I need to scp over to several remote machines (1 dir per remote ...
1
vote
1answer
3k views

How to copy files and directories to a remote host without rewrite a directory, just creating new ones

I tried to use scp to that task but unfortunately doesn't work, maybe i have a wrong idea if scp can do that Anyone can bring me some light? I read about rsync but i can't understand if rsync can just ...
1
vote
0answers
401 views

Inconsistencies with SCP for Ubuntu and Windows Server 2003 (using CygWin 1.7.x.x)

Some days ago I was able to scp to the remote server from my windows server 2003 using cygwin to copy the id_rsa, using scp (id_rsa.pub location) user@example.com now it(scp) seems to be not working. ...
3
votes
2answers
2k views

Copy a whole folder from a remote computer

I need to copy a whole folder from a remote computer. I am new to SSH and SCP. How can I do that?
-4
votes
3answers
160 views

Why must I add a colon for scp to work?

This command does nothing. scp doc.txt user@mywebsite.com This command, however, copies doc.txt into the home directory of my website. scp doc.txt user@mywebsite.com: Why doesn't the first ...
0
votes
1answer
59 views

runaway ram and external mouse sluggishness when doing scp

On my macbook air I noticed a weird problem, I wonder if this is normal. I was copying 4gb file from my mac to home server using scp. First I noticed my usb/wireless mouse getting sluggish I checked ...
0
votes
2answers
376 views

sftp packet length error with loaded .bashrc

I regularly use WinSCP to tranfer a few files to my personal server. However I recently experienced the infamous "bad packet length" error due to one of my echo statements residing inside the .bashrc ...
0
votes
1answer
4k views

ssh successful but not scp? why?

I am trying to automate the file transfer between server and the local machine, which I was able to do it on laptop running windows 7 as well as Ubuntu. Now trying to implement it on the local desktop ...
1
vote
1answer
693 views

Putty SCP known_hosts file or StrictHostKeyChecking=no

I need to be able to use a .known_hosts file or just disable checking, preferably the first option. I would be open to other ideas/software too, but hopefully someone can tell me how to do this with ...
1
vote
0answers
273 views

lftp mget equivalent for put?

Reading this answer, it seems an awesome way of transferring a ton of tiny files between two remote machines is lftp's mget command. However, I'm using two machines without root access, and only the ...
1
vote
1answer
685 views

Why doesn't redirect work for scp password input?

I want to copy from remote box with scp, while the fact that each time I have to re-enter password is annoying. So I store my password in plain text and expect the following code should work scp ...
1
vote
2answers
911 views

Windows: How to securely transfer file from windows machine to remote host

I am currently looking at have a scheduled task set-up that will transfer a file from a Windows system to a remote host (possibly another Windows or Linux). In linux I know this can easily be done ...
3
votes
3answers
2k views

Coda 2 and SCP uploading files with the wrong permission

Currently I have a basic Ubuntu server running a website. The website is for a few students learning HTML/PHP and each student has their own account with a symbolic link to the shared website folder. ...
1
vote
1answer
167 views

Formatting pwd/ls for use with scp

I have two terminal windows with bash. One is local on the client computer, another one has an SSH-session on the server. On the server, I am in a directory and seeing a file I would like to copy to ...
0
votes
1answer
3k views

scp No such file or directory

I've a confusing question for which superuser doesn't seem to have a good answer, and neither google. I'm trying to scp a file from a remote server to my local machine. The command is this scp ...
-1
votes
1answer
2k views

SCP send Lost connection

scp file.txt user1@10.57.111.44:/W/ Each time when I issue this SCP command, I get Connection to 10.57.111.44 closed by remote host. lost connection. Why is this happening?? ...
0
votes
1answer
151 views

how to use scp command?

Is there any way of remembering how to use scp command? I tend to forget how to use it. Folder/file argument - order of arguments etc. Are there any tricks for remembering this, so that every-time i ...
0
votes
2answers
604 views

Compressing files from SCP on the fly

I am retrieving a large files using SCP (from a linux system to a Windows system), now is there any way of compressing that destination file on the fly, for example: pscp -C ...
1
vote
2answers
684 views

Can i scp to an sftp-only server with RHEL5?

I have a RHEL5 box with sftp access to a central server. No ssh, not anything else but sftp. SFTP is nice, but it's interactive. I've heard of scp variants that use sftp protocol under the hood, ...
0
votes
2answers
3k views

Overwrite if newer : SCP folder transfer

WinSCP has a great feature that only copies newer versions of files when you transfer between hosts. For whatever reason, I'm not able to connect to my remote host via WinSCP so I must use SSH. I ...
4
votes
4answers
1k views

Is there a way to resume an interrupted scp of a file?

I'm occasionally downloading a very large file via scp and there's a small chance each time of the connection dropping and cutting the transfer mid-way. Is there a way to resume it?
6
votes
3answers
4k views

How to gzip a directory, transfer via scp, and decompress in one command?

I frequently transfer large directories over scp and it would be sweet if I could somehow compress the directory, send it, and decompress it all in one. Is something like this possible?
10
votes
1answer
7k views

Using SCP or SFTP with my ssh config file?

Perhaps my google-foo is failing me here... I'd like to connect and upload a mysql dump file via terminal using SFTP or SCP to my remote server using my ssh config file. According to documentation ...
4
votes
3answers
2k views

scp with zsh : no matches found

when I try scp over zsh, I get scp hostA:Descargas/debian-6.0.4-* user@192.168.1.154:Escritorio/Software/ zsh: no matches found: hostA:Descargas/debian-6.0.4-* the same command work in bash
7
votes
3answers
4k views

How to copy a sparse file using scp?

Do we have any option in scp that I could copy a sparse file ? The following command works with ssh, But I am looking for an option in SCP which copies a sparse file. tar -Szcf - /home/myself/test/ ...
1
vote
1answer
184 views

single persistent scp connection program options

I'm using PSCP (part of the putty package) to make several connections to a server but my boss would like to reduce the number of connections to 1. Is there a Windows program like PSCP which only ...
3
votes
2answers
2k views

scp remoteA:file remoteB:

with scp I can get a file scp remoteA:file . and put a file scp file remoteB: but when I try scp remoteA:file remoteB: I get ssh: Could not resolve hostname remoteB: Name or service ...
5
votes
2answers
15k views

How to SCP from linux server to Windows client

I am Puttying into a linux machine and trying to copy a file down somewhere (anywhere) to my local machine. I figure SCP is the best candidate for the job but don't really care, so long as the ...
1
vote
1answer
1k views

I get “lost connection” error while using ssh and scp

mySCP="scp -q -o StrictHostKeyChecking=no -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o HostbasedAuthentication=no" rm -Rf /tmp/logdata mkdir /tmp/logdata $mySCP -r ...
0
votes
1answer
173 views

Use different shell for scp

I want to use a different shell when Im scping files to a remote server as compared to when Im logging in. Is there a way to do this? Note that both scp/remote login is done with the same user, so I ...
1
vote
1answer
422 views

Copying a large number of small text files between two servers over WAN

We have a few thousand small files (2-20KB) to copy between servers in one folder for backup purposes. Currently the process is automated as a cron job and does of SCP copy of each file to the remote ...
7
votes
1answer
20k views

scp'ing using key file as a parameter, How can I do that if possible?

scp -i ~/.ssh/id_rsa.pub events*$date*_QA.log $remote_user@$remote_server:$remote_location Is the aforementioned script incorrect? Am I not doing it correctly? I went to .ssh directory and see that ...
0
votes
1answer
393 views

scp permission error

I am trying to do a scp from a server where the user home directory has been given permission 744 recursively. On doing scp I am getting the following error "C0744 1733 database.cpp" . The situation ...