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
1answer
90 views

passwordless scp without keys

I am looking for some option that will allow me to accept files from any server using SCP command. I am aware of the process of creating password-less logins. But what I am looking for is an option on ...
0
votes
1answer
109 views

How can I refer to my machine (client) when remoted in to a server via ssh?

This comes up with surprising frequency: I am on a server or other machine via ssh. I want to scp or rsync some files back to my client machine. The problem is that I am behind a firewall and I don't ...
1
vote
5answers
328 views

Setting up SSH Key securely for SCP/rsync to run without password

This is how I am currently doing it: # ssh-keygen -t dsa -b 1024 -f /root/localhost-rsnapshot-key Enter passphrase (empty for no passphrase): [press enter here] Enter same passphrase again: [press ...
0
votes
1answer
1k views

can not connect through SCP, but SSH connections works

i am trying to connect to my server to transfer file using scp: $ scp -v -r -P <port> <user>@<host>:~/dir/ dir/ this is the output: OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011 ...
-3
votes
2answers
157 views

Create a public key to allow scp server to server

My scenario is this, I am trying to SCP from server1 to server2 and and I need to create a public_key on server1 to allow server2 access to it. How do I do this?
1
vote
2answers
226 views

rsync unique situation

Reference: How do I do Multihop SCP transfers? http://stackoverflow.com/questions/732039/rsyncing-files-between-two-remote-servers-get-errors-stating-rsync-command-not ...
1
vote
2answers
283 views

Cannot log in to bash

I was trying to install ncurses on a virtual Debian server on VMware and somehow was unsuccessful. After logging out of the console, I realized that I could not log in anymore. I cannot use tools such ...
1
vote
2answers
2k views

Is there anything I can do to improve the performance of uploading ISOs to ESXi 5?

I'm trying to upload a few Debian ISOs to my ESXi 5 datastore but it's really slow. Far slower than downloading them from the web was in the first place. I've tried both via the GUI uploader and ...
-1
votes
2answers
89 views

SCP and backing up data

I have a user on my Linux NAS box running barebones and I want to setup SCP but without Shell access and I ONLY want it to access one folder. Is this possible?
1
vote
2answers
53 views

Get Zipped Logs from a Remote Server

I am tasked with trying to find a way to download zipped logs from a remote server. There are quite a bit of these logs and they are constantly created. I do have limited ssh access to the remote ...
1
vote
2answers
2k views

scp to remote servers stalls, unable to isolate cause

When I copy a large file (100+mb) to a remote server using scp it slows down from 2.7 mb/s to 100 kb/s and downward and then stalls. The problem is that I can't seem to isolate the problem. I've ...
0
votes
1answer
240 views

Scp only a specific folder

Some command line syntax I don't know how to set, am a noob sometimes, sorry is that's obvious Let's says I have the following path for all my assets : ...
0
votes
1answer
518 views

file transfer with ssh pipe; without scp

Scenario: I'm having about hundred odd text files which are compressed as .gz. They need to be transferred to a remote server. I do not want to use scp. Both, linux servers. my requirement/my idea: I ...
0
votes
1answer
41 views

scp not downloading file in the proper location

So I'm SSH-ing into a server and trying to download a file to my local machine using scp: scp user@remotehost:/path/to/file/filename . But the file ends up downloading in the home directory on the ...
0
votes
1answer
101 views

juniper VPN disconnect when I use SCP

I am using Juniper in my company. I have a 64 bit Ubuntu 12.04 laptop. I can ssh to remote servers, and do everything well. My problem is : whenever I scp something to the remote server, Juniper ...
0
votes
4answers
199 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
261 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
752 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
994 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
621 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 ...
6
votes
4answers
3k 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
844 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
272 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 ...
0
votes
3answers
2k 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
448 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
724 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
69 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 ...
6
votes
1answer
1k 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
887 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
312 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
243 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 ...
1
vote
5answers
961 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
171 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 ...
0
votes
0answers
309 views

Torque PBS Errors on Node “sys_copy, command '/usr/bin/scp -rpB /var/spool/pbs/spool/169104.davidbook.ER david@DavidBook://Test.e169104'”

and thank you for any help with this problem. I will find some questions I can answer well to pay the community back either way. I keep getting the following error on my test cluster syslog: May 20 ...
1
vote
5answers
441 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
3k 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
419 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
412 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 ...
3
votes
7answers
5k 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
174 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
366 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
3k 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
239 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 ...
0
votes
0answers
583 views

Torque: Unable to copy output and error files to the submission dir

I'm using torque-mom-3.0.3 on Fedora 16. I'm completely newbie about of torque and I'm testing a pbs_server on a virtual machine an a pbs_client on the host. pbs_mom complains as follows on node ...
1
vote
1answer
368 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
41 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 ...
2
votes
2answers
3k 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
298 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
310 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 ...