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

learn more… | top users | synonyms

1
vote
1answer
407 views

scp copying to localhost from remote server

I was wondering whether there's a way to copy files from remote server to localhost after i had already "ssh"ed into the remote host? i.e. after ssh: "scp file @local:~" (I know about scp ...
2
votes
1answer
120 views

Smarter scp that duplicates part of the local path

Many, many times a day, I find myself wanting to copy one or two files from ~/src/some/path/or/other and ~/src/some/different/path on my local machine, to /srv/www/some/path/or/other and ...
-1
votes
1answer
120 views

Copying entire dir using SFTP [duplicate]

In sftp> put * or get * doesnt get the hidden files or directories inside the dir. What to do if I want to use sftp to copy entire dir,along with subdirs that are hidden also? For example a .git ...
2
votes
1answer
1k views

“stdin: is not a tty” message from scp

I got this message when I copy file using scp to CentOS server "stdin: is not a tty". What it means and how I make it go away? The transfer is ok.
2
votes
1answer
717 views

Skipping a file from downloading using scp

Just a simple question. Say I have a bunch of *.txt files on a server somewhere and I'm using the standard scp command to download *.txt to my computer. However, say one of the files, call it ...
1
vote
2answers
14k views

How to use PSCP to copy file from Unix machine to Windows machine where target path has spaces?

I am having a problem using PSCP in a C# program to copy a file from a Unix machine to a Windows machine. The problem only happens when the target folder on the Windows machine has a space in it. ...
2
votes
2answers
307 views

Cannot scp file to an EC2 instance that I can ssh to

I have two EC2 instances that were created from the same AMI, which was created from the Amazon Linux AMI. These are running mysql in a master-slave configuration. The security group ("db") is ...
4
votes
2answers
217 views

SCP giving out a blank line and not transfering files

As said, an image is worth a thousand words: This blank line is weird. SSH works correctly. Some verbose mode shows me this: I just... scp never gave up on me. Looks like it did today.
2
votes
3answers
573 views

SCP files between 2 vms

I have 2 virtual machines. The 1st virtual machine is where the source files are stored. The 2nd virtual machine is where my bash script is and it should copy files from source to my 2nd virtual ...
1
vote
1answer
2k views

Is it possible with SCP to only copy files that match a certain date?

Is it possible to have SCP filter the files that it copies by date, e.g., if you wanted to copy all files that were created on 12/29 and ignore the others?
1
vote
1answer
333 views

scp over ec2 ignoring a directory?

Facing a problem while using scp to download a file from AWS EC2 instance(to which I have assigned a elastic IP),scp is ignoring the my-store folder. But when i access the ec2 instance over ssh, I can ...
0
votes
1answer
296 views

copy a file with scp, which is not stored on a filesystem

I need to copy a .war file, which i currently just can reach over the UI with "http://server:host/directory/my_file.war". So its not stored on a fileserver. Im logged on a server A and the file needs ...
0
votes
0answers
450 views

scp not working

I need to copy a file from remote machine(which is using Windows OS) to my machine(It also uses Windows OS) using ssh in java.So i used JSch sample code exec to do this work.In this i gave scp command ...
0
votes
3answers
54 views

Perform shell operation through secure shell

Is it possible to perform a shell operation from a bash script through a secure shell. Here is an example of why you may want to do this. Lets say you have a simple unix operating system that you ...
0
votes
0answers
363 views

Automation script to SCP from UNIX to Window Server

I'm new to server/Unix trying to transfer file between AIX to Windows I'm trying to create SCP or SFTP script that will run on cron and transfer text file on /usr/apps/11.111.1.11.log file to window ...
1
vote
1answer
520 views

pscp connection time out

Trying to copy from Ubuntu Server to my Windows 7 machine. SSH'd into the server using Putty, navigated to the directory containing my file and ran the command: pscp -P 2222 FileToCopy.txt ...
0
votes
2answers
104 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, ...
2
votes
1answer
2k 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
3k 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
977 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
715 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
416 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
621 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
345 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
232 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
78 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
2k 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
204 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
83 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
215 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
4k 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
1k 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
99 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
417 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
172 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
61 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
413 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
854 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
286 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
741 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
990 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
188 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
153 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 ...