Secure Copy or SCP is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.

learn more… | top users | synonyms

0
votes
4answers
253 views

How can I send single file to multiple remote sites at the same time?

can scp be used to send single file to multiple remote servers at the same time? If so what's that? if not, what's the alternative?
1
vote
1answer
408 views

Vim SCP parameter with private public key pair

Currently, I am trying to edit a file on a remote server using Vim's built-in netrw plugin. I can SSH fine into my Amazon EC2 server using a command like this: ssh -i <keyfile> ...
3
votes
1answer
1k views

configuration transfer over scp on commit not working on Juniper EX-2200 switch

I am making a series of configuration changes on Junos EX- 2200 switch.I have this router connected to another PC via an ethernet cable.The IP address of the switch is 192.168.1.1.I am able to ping ...
0
votes
2answers
2k views

How to make SCP on Linux output “success” to stdout instead of stderr?

We have a cron job that sends stuff to another company using SCP. The command look like this: 10 0 * * * ssh USER@LOCAL-SERVER 'scp -q ~/some/dir/* REMOTE_SERVER:/other/dir/' >> ~/log/some.log ...
-1
votes
4answers
949 views

Cloning entire partition of a server over a network

Using the linux command 'dd' you can clone a partition to a .img file. I have used this method for duplicating flash drives for use with many servers in the past. Then if one goes down, it is very ...
8
votes
4answers
7k views

OpenSSH anything like 'internal-sftp' but for SCP?

I'm running Debian stable and I'm looking to establish the following environment for users in my 'sftponly' group: jailed can transfer with SFTP can transfer with SCP cannot login interactively with ...
0
votes
1answer
1k views

Solaris 10 very slow ssh file transfers

Trying to copy a few TBs betweek Solaris 10 u9 systems A single scp only seems to be able to transfer around 120MB/min, over a 1GB network. If I run multiple scp copies, each one will do 120MB/min, ...
1
vote
1answer
483 views

Recommend practice for checking if files where copied using SCP

I'm trying to create simple backup script that copies some files to timestamped directory on the remote machine - this part is working quite OK, because I didn't run into issues like e.g network ...
1
vote
3answers
3k views

Linux SCP File transfer No space left on device?

I am trying to transfer one zip file from a linux based machine to a Windows based using SCP. I can go through the transfer ok but when it completes it says "No space left on device". The ...
0
votes
3answers
493 views

rsync or scp only if there's a difference

How do i figure out if there's a difference between an backupfile and the current used one. The Filename of the Backup is named like: filename_date.conf and the currend used one is name like: ...
5
votes
1answer
2k views

bind interface for upload : scp works, not rsync

I need to upload file on a specific interface. This cannot be set-up via iptables, because my script output on several interfaces. this is working fine : scp -oBindAddress=192.168.100.1 ... but ...
0
votes
1answer
77 views

Does scp block server functions?

I have a node.js application server. It serves my api and dynamic web pages. The database is not on the server. I want to continuously scp files into the server. Would that cause slow downs or block ...
7
votes
1answer
2k views

Reliable file transfer over slow or flaky network link

I need to transfer a number of files files over a low-quality broadband link to a server. The files are large, and take approximately 30 minutes to transfer per file. I use scp, but it sometimes ...
0
votes
1answer
1k views

Elastix, how to MOVE files from one server to other server?

In my office, i have to schedule for moving a file from one computer to other computer (Both are using Elastix). My idea is using cron, scp, and rm to do this. So here are the script that i use: scp ...
0
votes
2answers
424 views

copy files with folders [closed]

The following scp is working as expected. scp /home/admin/* root@ec2-50-112-212-73:/ But I need a command that will create the required folder structure on destination server if it does not already ...
2
votes
2answers
272 views

Download files from server while logged in via ssh

I have root ssh logins disabled on my server, but I currently want to back up some files owned by root onto my my local box. I am trying to figure out a way to use SCP to retrieve files while logged ...
2
votes
5answers
1k views

How to copy directory from one Linux server to another with a minimum in-between period?

I have a rather big directory on one server (over 4000 files), which I'd like to copy to another server (which contains a previous version of this directory). rsync is the first option, but it will ...
0
votes
1answer
258 views

Access via sftp/scp an encrypted disk

I would like to do something really paranoid but I am not sure it could be done at least easily... Let's see if I can explain properly: I have a server running debian (could be changed to any other ...
1
vote
5answers
527 views

Fast Internet Backup

We wish to install some servers in a remote datacentre to act as a backup storage location for our primary datacentre. Assuming that both sites will have GigE connectivity, what is the best method to ...
3
votes
3answers
9k views

Use scp to copy a file to different servers

I have to copy a file to different servers almost every day. What I usually do is: scp filename user@destinationhost:/destination/folder I run this same command changing the destination host over ...
0
votes
2answers
603 views

Download big files from ESXi?

I want to move one of my vm guest between two ESXi servers. I can't do this with converter or Veaam FastSCP because I'm in another network and using this tools is extremly slow. So I'm trying to copy ...
2
votes
2answers
2k views

scp to AWS EC2 - error - “Please login as the user ”ubuntu“ rather than the user ”root“.”

I'm trying to scp a file to /var/www because I'm playing with apache. To move the file I do scp -i <ec2-shh-key> localfile root@<ec2-instance-ip>:/var/www/fileremote. But this gives me an ...
2
votes
1answer
596 views

Limit scp (with sshd on centos) speed / rate

I'd like to let users download / upload files via scp to my centos 6.0 system, it's connected to lan via Gigabit ethernet, but I don't want transfers to flow at that speed. I want to limit the speed ...
4
votes
7answers
13k views

Copying huge files between two remote machines - Efficiently

I have a shell script which keeps on copying huge files (2 GB to 5 GB) between remote systems. Key based authentication is used with agent-forwarding and everything works. For ex: Say the shell script ...
-1
votes
1answer
251 views

does scp affect performance

I am using scp to copy a file from remote server to local and it is working as expected. scp remote_server.com:/data/ar_uw2a_vol_0286036c_2012-04-24-05-35-00 . I have 2 questions: 1) Since I am ...
0
votes
1answer
481 views

cygwin scp to linux box corrupts files, while winscp fixes the corruptions?

I have a bash script for deploying my app jars and sh files from the dev machine to prod machine (centos). it simply calls scp and copies all the necessary files. when I run it from an ubuntu box, ...
2
votes
1answer
5k views

VMware seems to throttle SCP copies, what can be the reason?

I seem to have a strange issue with my VMware cluster, where I get inconsistent SCP transfer rates. I have Cluster1 and Cluster2, physically in different regions. I need to transfer large vmdk from ...
3
votes
3answers
361 views

SCP overwrites files with dollar signs

I have this files: A.class A$1.class A$2.class And a bash script with something like: for i in *; do scp "${i}" foo@bar:/tmp/; done This works fine. All three files are copied. The problem ...
1
vote
1answer
421 views

Using command in ssh authorized_keys breaks scp

I would like to use command per key in authorized_keys to set some environment variables. command="MYVAR=test $SHELL" ssh-rsa mykey Shell works fine but scp is not working. What would be the ...
0
votes
0answers
47 views

How write .sh script to remote copy files between linux [duplicate]

Possible Duplicate: How to pass password to scp command used in bash script? when use scp to remote copy file between servers then type "YES" and "PASSWORD" I don't know how to auto type ...
9
votes
2answers
12k views

preserve permission with scp

SCP does not seem to preserve ownership stamps even if used with -p option. scp -p /mysql/serv/data_summary.* some_server:/mysql/test/ The files are owned by mysql and I want the same ownership to ...
0
votes
1answer
480 views

scp (ssh) fails the first time, works the second time

We have a debian testing server. When I am trying to access the server with scp it doesn't work the first time - the client says, that the remote host closed the connection. When i try the same action ...
1
vote
2answers
391 views

Script SCP without certificates or expect

I need to script SCP and I need to be able to do this by passing in the password in plain text. I am absolutely aware of the horrible design pattern that I am asking for. I cannot use certificates for ...
-1
votes
2answers
264 views

Transfer files on SSH to Desktop [closed]

Based on the tutorials I've browsed through: This is the Linux scp command syntax to retrieve file or directory from a remote computer: scp -r [login name@ip address] : [/path/filename] . So ...
0
votes
3answers
3k views

Force SFTP/SCP to copy files with a remote directory's permission

I am having a problem with SFTP and SCP where files that are copied are not inheriting the permissions of the remote parent directory. I have seen similar questions on serverfault where the umask of ...
21
votes
5answers
18k views

How to _MOVE_ files with scp?

How to not copy but move files from one server to another (both Linux)? man scp didn't give me anything useful. I cannot use 'scp' then 'rm' because I must make sure the file is successfully ...
2
votes
3answers
5k views

ssh login successful, but scp password gives me “Permission denied”

I'm trying to get some blogging software up on an organizational remote server. I tried to set up a SSH Key but was having problems and decided that getting the blog up and running was more important ...
0
votes
2answers
1k views

How to use directory autocompletion with scp

I use the authorized-key to log into my remote ubuntu server. I need to use scp frequently to cp files from my local machine to my remote machine. I want to enable the autocompletion as I did with my ...
1
vote
2answers
721 views

How to use ssh to copy a file multiple hops with agent forwarding?

I have a group of servers all properly configured with SSH agent forwarding. It is a typical bastion server style configuration where the only machine you can connect to from the outside is server A. ...
2
votes
4answers
2k views

SSH not seeming to run in bash script called via web server

I have a simple shell script that: Makes a directory on the remote machine. Copies a .epub file to the remote machine's new directory. Runs kindlegen to convert the .epub to a .mobi. The remote ...
1
vote
3answers
1k views

Estimating the time needed to copy a big file

I have to copy a relatively big file (6GB) to another server. To enforce consistency, I have to 'lock' this file and not use it during the transfer. I obviously want to minimize this downtime, but ...
1
vote
3answers
3k views

change scp default directory in `~/.ssh/config`

The scp (openssh) command accepts relative paths as host:path/ which are relative to the home directory on the host. I would like to change location of the default directory. For example, I would ...
0
votes
1answer
129 views

SCP - Traditional Web Server to EC2 Instance

I am setting up a backup server instance on EC2 with a public dns for its IP so that other servers on hostgator with dedicated IPs can send files to it. I am confused as to how to use SCP with EC2 ...
0
votes
3answers
2k views

Trying to SCP from Local Mac to Amazon AWS Linux Machine

I am trying to copy a file from my local Mac to my Linux instance running on the Amazon EC2 / AWS Cloud. I am able to connect to the server via Terminal, but am unable to get my file up to the ...
1
vote
3answers
123 views

How To Setup A Centralized Repo To Distribute Files To Servers

Assume I have dozens, even hundreds of servers. What is the best method of pushing a central copy of files to a given directory to all servers? Example, we update a bash script, and put it on a ...
5
votes
3answers
2k views

How to copy large (> 1 million) number of small files between two servers

I need to migrate about 1TB of data comprised of smaller files (most under 100KB) to another server. I've not even completely enumerated the files but estimates are between 1-2 million. The ...
0
votes
1answer
196 views

OpenSSH scp restrictions a-la gitolite

Does anyone know of some software that would allow to restrict/tune the scp experience on a single unix user, based on SSH keys? Similar to what gitolite does, or more flexible what rssh can do, but ...
2
votes
3answers
2k views

How do I SCP keypairs from one Amazon EC2 instance to another instance?

I am trying to SCP cert. between my two instance and having some trouble. Here is what I am entering. [ec2-user@ip-xxx-xx-xx-xx ~] scp -i .ssh/key.pem /root/.ssh/id_rsa.pub ...
3
votes
5answers
11k views

How do I SCP file between two Amazon EC2 server?

I am on Amazon AWS and I have two EC2 instance on my account. Trying to send rsa key via SSH to another EC2 instance using internal private IP. But its not working. scp -i .ssh/id_rsa.pub ...
0
votes
5answers
543 views

duplicity can't find remote backup directory?

Using my private key to do so, this command allows me to connect to /home/backupUser/backup just fine: $ sudo sftp -oPort=7843 backupUser@192.168.x.x:backup However when I run duplicity, I get ...