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
3answers
1k 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
1answer
39 views

Improving “first copy” timing to distant data center?

Background: Our production rollouts comprise of below high-level steps. Take golden copy of code from single staging source. Stage code to multiple datacenters. Modify the staged code to have ...
0
votes
1answer
12 views

Can scp setup file mode of copied files?

The man page of scp does not mention any mode option. Is there a way (or other program) that could setup the mode for transferred files?
2
votes
3answers
2k 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
3answers
30 views

SCP copy windows local file to linux remote folder

How to get a file from my path d:/test.txt and copy it to /etc/var/test/test.txt I've tried this: scp d:/test.txt /etc/var/test/test.txt but that didn't worked, how to set the hard disk from where ...
0
votes
2answers
22 views

SCP version of - ssh -A -t -l root 192.16.4.9 ssh -A -t node-17

I'm on a vpn. I ssh to a machine through another machine like so ssh -A -t -l bob 192.16.4.9 ssh -A -t node-17 I now need to scp a file from node-17:/tmp/something. How can I do the above in one ...
2
votes
1answer
43 views

How to create a web upload user for SCP

I have a server running apache as webserver. I need two user accounts to upload web content via scp. As example a wordpress installation. When I configure those users, and upload the files they are ...
4
votes
9answers
5k views

Is there a way to SSH / SCP to another server as a different user, via a script?

I need to automate a way to distribute files to many servers. The problem of course is I need to use a secure protocol (SSH or SCP) and the username / password on each server is different. The ...
2
votes
2answers
61 views

How to parallelize the for loop while scp the files?

I am running my below shell script from machineA which is copying the files machineB and machineC into machineA. If the files are not there in machineB, then it should be there in machineC. The below ...
2
votes
5answers
7k 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
1answer
753 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, ...
2
votes
2answers
37 views

Give user SCP access to another user's home directory

We normally use public key logins for our server but a new subscription service is requiring a username and password for SCP access to a user's account (This is Vaultpress - A remote backup utility ...
0
votes
1answer
339 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
3answers
203 views

Why is scp much slower than http?

I have an instance on Amazon EC2 which holds a large-ish file (~180MB). I need to copy that file to my local machine, so naturally I tried scp. After trying multiple times only to get max speeds of ...
1
vote
3answers
117 views

How to parallelize the scp command?

I need to scp the files from machineB and machineC to machineA. I am running my below shell script from machineA. I have setup the ssh keys properly. If the files are not there in machineB, then it ...
-1
votes
1answer
164 views

SCP corrupted MAC on input

I have SCP and SFTP transfers failing from my linux VPS server (CentOS6.5) to my local desktop Mac. The transfer starts buy fails within the first minute with the error message - "Corrupted MAC on ...
1
vote
2answers
64 views

How do I iterate bash arrays and make an SCP command efficiently?

I need to scp the files from machineB and machineC to machineA. I am running my below shell script from machineA. I have setup the ssh keys properly. If the files are not there in machineB, then it ...
2
votes
3answers
154 views

Copy a file from remote to local

I am trying to copy a file from 10.10.10.99:/home/shantanu/ to the localhost. The only problem is that I need to tunnel the connection through 10.10.10.98 Something like this does not work.... ssh ...
0
votes
2answers
2k views

“Corrupted MAC on input. Packet Corrupt” on file transfer over SSH, SCP, and FTP on Linux Server

help on this would be great. Specs: LAMP server Linux OS - Debian 5.0.1 4x Intel(R) Xeon(TM) CPU 2.80GHz Important Packages: openssl - SSL security iptables - firewall to block all requests ...
0
votes
4answers
333 views

FTP/FTPS/SFTP/SCP - Speed comparison [closed]

How do FTP, FTPS, SFTP, and SCP compare in terms of transfer rate and how can I compare them through testing?
0
votes
0answers
82 views

SCP and SSH do not work from PC in another subnet

I've posted this question on stackoverflow and was recommended to try this forum instead. I have Ubuntu guest running on VmWare hosted by Windows 7. I tried to scp a file from a server PC to my ...
0
votes
0answers
95 views

scp cannot transfer file?

This problem is i cannot transfer file from my computer to server. I use command scp -v ./1.cap ug01:/cshome/twu5/, it take about 3 mintus, but scp did nothing. Then i terminal the scp. Here is the ...
0
votes
0answers
181 views

Centos: scp stalls after sending some data and then both NIC's become unavailable, what could be the reason?

I have a brand new Dell R610 server installed with latest Centos 6.4 . This server has been purchased in a bulk of 5 servers and all other servers act the same. I'm trying to scp a centos.iso file ...
2
votes
2answers
760 views

Make scp always overwrite or create directory

I am using scp to copy a directory from one remote server to a new directory (IE just changing the name) on another remote server like: scp -prq server1:dir1 server2:dir2 This works fine if dir2 ...
1
vote
2answers
44 views

scp only files with defined extension

I want to transfer only files with special extensions (like only *.tar.gz, *.war) in one scp command (Debian Linux). Is this possible, if yes how is the syntax? Should be someting like: scp ...
0
votes
1answer
71 views

How to get password prompt from scp when launched remotely via ssh

When I ssh to a remote system and execute scp, I do not get a password prompt: # ssh 192.168.1.32 "scp joe\@192.168.1.31:/etc/hosts /tmp" Permission denied, please try again. Permission denied, ...
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 ...
23
votes
8answers
11k views

Allow SCP but not actual login using SSH

Is there any way to configure a user on a Linux box (Centos 5.2 in this case) so that they can use scp to retrieve files, but can't actually login to the server using SSH?
1
vote
3answers
7k views

WinSCP - SCP is working and SFTP is not working

I am trying to connect to our remote server using winSCP. It was working before. But from today I am not able to connect to the server using SFTP. If I changed the protocol to SCP, then I am able to ...
12
votes
4answers
7k 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 ...
0
votes
0answers
118 views

Scp fails in one direction for admin but is successful with root user

I am able to do a scp from one server to anoher using a particular user but the same user is not able to send files back to the first one. I used scp -vv and the detials look as below: Executing: ...
50
votes
4answers
55k views

Can scp copy directories?

Now I can only copy a single tar file,how can I copy directories recursively with scp?
0
votes
0answers
86 views

Using scp for local to remote transfer results in local to local transfer

I am currently using the following command to copy a local file to a remote server: scp -r -P22234 -v /backup/mysql/mysql-backup.sql.gz backup@linuxweb2.co.uk:/home/backup/ However the file always ...
0
votes
1answer
52 views

PSCP Command Errror

Can anybody explain what i am doing wrong here. I am trying to copy an entire directory up to a remote server. "c:\Program Files (x86)\PuTTY\pscp.exe" -l mleyland -pw Password5 -p ...
1
vote
3answers
74 views

Rsync-like file transfer with no rsyncd or sshd on remote end

I need to transfer and then update a directory structure from a linux host in my network to another linux host in a customer network. My only access to the customer network is through a Citrix ...
0
votes
2answers
898 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
vote
2answers
380 views

Why does my local network transfer speed decrease with larger files?

Short version: I have a Linux server (RHEL5) and a Windows 7 Professional laptop on a local wired network. Copying large files to the server gets gradually slower until it stops completely. Long ...
0
votes
1answer
788 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 ...
15
votes
6answers
118k views

How to pass password to scp command used in bash script? [duplicate]

Possible Duplicate: Connect through SSH and type in password automatically, without using a public key I have a bash script that makes dump of DB then copies file from one server to another ...
1
vote
3answers
427 views

scp stuck when trying to copy files from Linux to windows

I use the following scp syntax in order to transfer allot of files from Linux red-hat 5 to windows machine ( under Temp directory ), Remarks: SSH server already installed on windows machine I use ...
2
votes
3answers
4k views

Why getting a permission denied (public key) error for SCP when SSH works

I'm trying to copy a file from my local host to my Amazon EC2 instance using SCP and receiving the error: Warning: Identity file blocks_key.pem not accessible: No such file or directory. ...
0
votes
3answers
6k views

WinSCP alternative for OS X (that supports sudo and without virtualizing WinSCP) [closed]

I recently switched from administering my systems using Windows to OS X. I've found really nice alternatives to damn near everything I used previously, however I have not found a nice GUI editor ...
0
votes
1answer
237 views

scp returns Exit status 1

In a LAN I have two PC, both running Ubuntu 13.04. There is a directory which is in a shared folder (samba, guest access) in the first PC. I have tried to copy this directory to the second PC through ...
0
votes
0answers
91 views

Copy files from EC2 instance to remote dedicated server

I'm having trouble copying several very large sql dumps via SSH I used this command: /usr/bin/scp -P 2382 /ec2/path/file.sql root@$123.45.67.890:/remote/file/path/ And also /usr/bin/scp -P 2382 -i ...
1
vote
3answers
357 views

How do I fix scp file transfers between cloned Linux machines?

In order to get an identical setup between machines with identical hardware, I cloned the drive from one onto the other, then did the ip and hostname configuration to differentiate the two Linux ...
-1
votes
2answers
324 views

SCP Asking for Password with RSA Key

I've followed a few tutorials on setting up RSA Public Key Authentication, but I cannot seem to get it to work. I can SSH into the remote machine without a password, but when I try and scp files, I ...
0
votes
1answer
978 views

SCP transfer only modified files

I'm using below command to transfer files cross server scp -rc blowfish /source/directory/* username@domain.net:/destination/directory Is there a way to transfer only files modified files just like ...
2
votes
2answers
330 views

Linux to windows ssh/scp/sftp differential backup solutions?

Here is the setup: Large amounts of large files (many over 4gb, multiple TBs in total) in a simple tree structure that need to be backed up without compression from a handful of linux boxes to a ...
5
votes
2answers
12k views

How do you use SCP to copy a deep directory?

I need to copy a deep directory on one windows machine over 'itself' on another windows machine. I can't seem to get the command to work correctly. The current problem is that it appears that scp is ...
1
vote
2answers
85 views

scp says: Bad configuration option: CheckIP

I try to do a scp on my centos (without having ever configured anything on the ssh_config) receiving: Bad configuration option: CheckIP Where in ssh_config CheckIP no is configured. Didn't find ...