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
35 views

SCP transfer doesn't work and SSH ls freezes

I am trying to copy some file via ssh with a SSH-RSA public key. I've already accepted the host key in my server and viceversa so the keys are synchronized. Now I try to connect via SSH to the host ...
-1
votes
2answers
44 views

Putting My RSA Public Key on RSA Key-Secured Server

Hello and thanks for reading, Basically, I'm taking over for someone on some system admin duties, learning as I go, but one problem I've run into is not having my public RSA key put onto a particular ...
-3
votes
0answers
37 views

File server instance in Amazon AWS [closed]

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. ...
4
votes
4answers
88 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 ...
-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'?
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 ...
0
votes
2answers
44 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 ...
0
votes
0answers
34 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
52 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 ...
1
vote
1answer
99 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
40 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
171 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 ...
1
vote
1answer
35 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
583 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 ...
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
807 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
122 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?
0
votes
3answers
1k 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
36 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
64 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 ...
3
votes
2answers
173 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
2answers
70 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 ...
2
votes
3answers
396 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
votes
1answer
940 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 ...
2
votes
3answers
164 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
vote
2answers
113 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 ...
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
187 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
132 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 ...
1
vote
2answers
91 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, ...
0
votes
0answers
266 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 ...
0
votes
0answers
134 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: ...
0
votes
0answers
158 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
91 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 ...
2
votes
3answers
131 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 ...
1
vote
2answers
444 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 ...
1
vote
3answers
636 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 ...
0
votes
0answers
111 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 ...
0
votes
1answer
475 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 ...
-1
votes
2answers
559 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 ...
1
vote
1answer
2k 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 ...
1
vote
2answers
100 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 ...
1
vote
6answers
526 views

Secure file transfer in linux without SSH?

First thing i want to apologize if this question is silly or something...i just tried to research but it seems to be a bit hard to find exactly what i want in Google ! [or i'm not smart enough to find ...
-2
votes
1answer
324 views

~/.ssh/known_hosts file - how to set it up? [duplicate]

I'm trying to SCP a file from my server to another server. The command I'm using is: scp -i private.ppk -P 22 foo.txt someuser@domain.com:/home/someuser/foo.txt When I run this via the command ...
1
vote
1answer
80 views

Copying files over chained SSH connection

I am using a remote server and want to copy files from the server. When using the server, I need to log in with 2 steps. ssh username@A after loging into server A, I need to log in again. ssh ...
1
vote
1answer
132 views

Retain agent-forwarding in sudo

I want to be able to connect to a server, start a sudo shell, then use agent forwarding to connect to another server (in order to use SCP to copy files to a protected area). But: ...