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

learn more… | top users | synonyms

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 ...
11
votes
1answer
6k 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
0answers
234 views

Ubuntu SSHFS doesn't sync

I am trying to set up a Ubuntu-machine for web development, and thought i'd start working with SSHFS instead of the annoying FTP-protocol. I installed SSHFS through apt-get. I've created a folder in ...
2
votes
1answer
106 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
vote
1answer
373 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
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
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
1answer
639 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
12k 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. ...
1
vote
1answer
306 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 ...
2
votes
3answers
525 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 ...
0
votes
1answer
255 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
426 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
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, ...
0
votes
0answers
352 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 ...
3
votes
2answers
6k views

How to use scp in a bash script without specifying password?

I am a bash newbie, and am writing a bash script that will allow transfer of files between two computers. BTW, is there a more secure alternative to scp? Currently, I am doing this manually, by using ...
2
votes
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
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
854 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 ...
1
vote
1answer
192 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
0answers
651 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
400 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?
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 ...
2
votes
1answer
583 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?
0
votes
3answers
323 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
209 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 ...
1
vote
1answer
637 views

SSH download file from web server

I need to do a backup on a website, but I need to download locally to a folder on my hard drive. Example: scp name.zip -> MyMac/Documents/Backup This can be done via shell, Terminal, etc. What ...
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 ...
1
vote
1answer
195 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 ...
4
votes
4answers
8k 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, ...
0
votes
0answers
82 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 ...
4
votes
3answers
7k 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 ...
2
votes
1answer
197 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 ...
2
votes
1answer
98 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 ...
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
995 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 ...
1
vote
0answers
409 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. ...
0
votes
1answer
98 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 ...
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
1answer
703 views

How to continue scp transfert from last file

I was transferring large files using scp, but I got this error: write failed: Broken pipe lost connection. Now I need to re-launch scp but tell it to continue from where it left off. I looked into ...
0
votes
1answer
60 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 ...
-4
votes
3answers
163 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
2answers
393 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
774 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
2answers
959 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 ...
1
vote
1answer
711 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
1answer
178 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 ...