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
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 ...
-3
votes
0answers
33 views

File server instance in Amazon AWS

I have a VPC in Amazon Web Services with an instance that works as a file server, i.e., I want other instances (clients) to copy files from an to this instance. All the instances are Ubuntu servers. ...
2
votes
3answers
55 views

scp inside sh-script with passphrase

I've got a sh-script for a backup scp /mybackupdir/* backupuser@backupserver:/backup Is there an easy way to add a passphrase to the scp? Or do I have to check if an ssh-agent is running and if not ...
1
vote
2answers
37 views

copy between remote server with local authentication

When I need to copy some files between two remote servers, I usually scp -3 user@server1:path user@server2:path unfortunately, since that routes traffic through my machine, that is very slow when ...
-3
votes
1answer
20 views

Secure Copy of Directories and / or Files To a Linux Server [closed]

When copying files or directories to a Linux server, what is the difference between 'scp -r' and 'scp -R'?
0
votes
2answers
42 views

how to enable scp only on public interface and ssh only in internal interface

Server A has a public ip and a private ip, each on another vlan and thus on another virtual interface. How can I enable scp only on the public ip and ssh only on the private IP, for all users. Kind ...
1
vote
3answers
277 views

SCP to a server where I have SSH permission

I am trying to SCP a file I downloaded using this command: scp -v agenadinik@slabrams-desktop:/home/agenadinik/Downloads/agraph-4.2-linuxamd64.64.tar.gz ...
65
votes
4answers
77k 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
32 views

SCP Stalled : Server to Oracle VM

I have a oracle VM as a test environment, when I try to scp some files from my production server it always get stalled. Sometimes with very small file <5kb scp runs successfully. Please help. PS: ...
0
votes
1answer
48 views

scp to remote server permission denied

I try to copy files to a remote server (OSXServer) using scp. I have 2 user accounts on that server with what I thought the exact same settings. Now I tried the copying files into the respective home ...
3
votes
3answers
4k views

scp files and delete files on remote directory [closed]

I am a unix noob, so please be patient :-) I have a script that scps a bunch of files to another server. Suppose they are z1.foo, z2.foo etc. What I want to do is to overwrite the files at the ...
25
votes
6answers
8k views

How do I do Multihop SCP transfers?

I want to copy a file from my machine A to server C, but only have access to server C through server B. Instead of first transferring to server B, log in and then transfer to server C, Is is possible ...
1
vote
1answer
97 views

Securely copying files between two remote servers

I am trying to copy (scp) files from one remote server to another remote server. The remote servers are running Ubuntu and are using SSH authentication. The servers synchronise with LDAP, and all ...
0
votes
1answer
36 views

Cannot remote copy file via tunnel [closed]

I'm trying to get a file from server1 (localhost) with scp. I am accessing server1 from the gateway server2 (that is the only one accessible from the internet). I am able to open a ssh connection by ...
0
votes
1answer
153 views

MaxStartups and MaxSessions configurations parameter for ssh connections?

I am copying the files from machineB and machineC into machineA as I am running my below shell script on machineA. If the files is not there in machineB then it should be there in machineC for sure ...
25
votes
8answers
13k 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?
5
votes
3answers
8k views

PSCP: Upload an entire folder, Windows to Linux

I am using PSCP to upload some files from windows to linux. I can do it fine just uploading one file at a time. But I have some very large directories and I want to upload an entire dir at once. I ...
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 ...
1
vote
1answer
34 views

Changing default ownership for files created by a user

I gave user "jdoe" access to SCP files onto a Unix server hosting Wordpress. Files this user creates within the /var/www/Wordpress folder (and subfolders) need to be owned by www-data or at least the ...
1
vote
2answers
509 views

scp using a password on the command line

I am trying to write a script that will deploy a build created on my desktop machine (windows/cygwin) to a machine in my test environment (linux). I would like to use scp to copy the build to the ...
2
votes
3answers
130 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
1answer
23 views

Change OpenVPN client, can I use the same server configurations using scp? [closed]

I want to change my old FC 4 client to new Fedora 19 client, but I need to use all the same files on openvpn and IP address. Can I use SCP command for copy all this configurations?
0
votes
0answers
747 views

freeSSHd SCP Linux to Windows Fails with “exec request failed on channel 0”

Windows has freeSSHd installed. Logging in with ssh from Ubuntu 14.04 LTS via SSH using Windows Login credentials works fine. Logging in with SFTP also works fine. This test is being run from a ...
5
votes
2answers
118 views

Passing a private key to scp from the command line instead of a file [closed]

Is there a way to pass the contents of a private key directly to the scp command instead of having to copy it to a file and pointing at it via the -i /path/to/key.pem option? So instead of doing: ...
0
votes
1answer
44 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
17 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
978 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
34 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
61 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
6k 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 ...
3
votes
2answers
163 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 ...
3
votes
5answers
8k 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
879 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
69 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
381 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
389 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 ...
2
votes
3answers
159 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
883 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
112 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
160 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
3k 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
3k 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
178 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
128 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
262 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
2k 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
89 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
88 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 ...