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

1
vote
0answers
24 views

Download startup config from Cisco device using SCP

I can successfully download the config from Juniper network devices using SCP - I'd like to do the same for a Cisco router. SSH access is already working, and I've enabled SCP using ip scp server ...
0
votes
1answer
64 views

Why is FileZilla SFTP file transfer max capped at 1.3MiB/sec instead of saturating available bandwidth? rsync and WinSCP are even slower

I'm downloading from a server and downloads are maxing out at 1.3MiB/second with FileZilla but I can start concurrent downloads and they will download at 1.3MiB/second also. So why can't I download ...
0
votes
3answers
36 views

scp remote file to local machine [duplicate]

as a part of script I'm trying to copy a file from remote site. But got an error. To me that sounds bit strange as everything sounds ok: #aaa="/path/to/some file with spaces(and brackets).txt" .... ...
2
votes
1answer
56 views

SCP command hangs while transferring small files

I have a new server in a private subnet in an AWS VPC. I have a NAT instance in the public subnet of my VPC, and can connect out to remote servers fine. However, when I try to scp files, things seem ...
0
votes
1answer
77 views

How to scp file to remote servers' root directory and run sudo commands?

NOTE: The servers does not share the same password but I will setup no-password login at first. Here's the use case, I need to do these below step by step in my deploy.sh: scp files to remote ...
0
votes
0answers
41 views

Can the veeam FastSCP tool be pointed at any SSH server?

The FULL veeam backup suite has a "Linux Target" option where you can point the backups to a Linux server over SSH - but it really has to be a Linux server, and it has to have perl installed and sudo, ...
0
votes
0answers
56 views

Backing up VMWare VMs to a Linux server using FastSCP from veeam

My goal is to back up VMWare ESX/ESXi VMs to a local fileserver. The local fileserver is either a plain old Linux system with SSH or a FreeNAS system. Both of those systems would accept scp/sftp ...
0
votes
0answers
19 views

Permissions of files and subfolders in /var/www/html (Ubuntu 14.10 + Apache2) [duplicate]

I have some questions about permissions and ownerships of folders and files in Ubuntu Server 14.10 + Apache2. Is it correct that /var/www/html is owned by root:root by default? As far as I read, it ...
-1
votes
1answer
44 views

Fastest way to copy small files over secure network without regard for file mod times or size

I want to sync files in dir1 and dir2 (two different servers). I do not care if the file sizes or modification times differ. EXAMPLE: dir1 contains file1, file2, file3, file4, and dir2 contains ...
-1
votes
2answers
42 views

PSCP not copying all the files from Linux Server [closed]

I am trying to copy a folder/directory from Ubuntu Server to Windows using PSCP. I am using following command to copy: pscp.exe -r -pw pass user@10.10.10.11:/u02/mycode/code . Above command does not ...
1
vote
2answers
139 views

Copying data between AWS EC2 machines

There are times where, in order to do some debugging or perhaps a manual migration, I need to copy large chunks of data from one EC2 instance to another. When the size of the data is tiny, it's simple ...
1
vote
0answers
11 views

Is there a way to restrict a user's access to scp only (ie no ssh access)? [duplicate]

I don't need the user to have ssh access. They should only be able to copy files using scp. Is this possible?
1
vote
3answers
107 views

Quickest way to replicate small files on 4 machines?

I have 4 servers, all on a secure local network. Each server runs script.php (every minute). script.php reads from a local dir called /arc, does a file test, and writes a new file back to /arc. ...
6
votes
2answers
1k views

MTU on server accidentally set to 0, can't ssh into it?

My server had some problem with the ssh and I couldn't upload files of size > 10 KB, as scp would hang during the copy. I found a solution for this problem here, and I was changing the MTU, when I ...
0
votes
1answer
65 views

Remote SCP & SSFTP access to linux server denied

This situation is a bit embarrassing but I could really use some help. I took steps to secure my linux server by carrying out the following steps: created and use a different user to use in place ...
0
votes
1answer
96 views

Script to Push Files

Script to Push Files Hey Guys, Thanks for always being helpful, I have another issue that I need a little insight on how to fix. See the below script I have and the error I get. I don't understand ...
0
votes
1answer
79 views

How to force an ssh tunnel (or a ProxyCommand) to use an existing master connection? [closed]

There are three machines A, B and C running linux. I have root access to machines A and B but not to C. A is my local machine and I want to connect to C. C is only reachable through ssh over VPN. I ...
-2
votes
2answers
451 views

fastest way to transfer small files (faster than scp) [closed]

Scp is quite slow for transferring individual files. What is the quickest way to do this? The reason I need speed is not because I have a large number of files to transfer. I just want the individual ...
0
votes
1answer
111 views

rcp files from windows 2008 server to linux box? (Running rcp on linux)

I am trying to run rcp command on rhel6 server to copy over files from a windows 2008 server but see this error message. /usr/bin/rcp administrator@10.225.185.112:"C:\nfsqa-rhel62-vm01.root.keytab" ...
0
votes
1answer
22 views

Loaded files of the website with scp, but css files and images are not loaded [closed]

I have copied all the files related to the website to the server using scp, but the only css file that I loaded inside css folder on the server is not loaded by the html files. I have checked the path ...
1
vote
5answers
228 views

Automate and create SSH keys for large number(Nearly 9000) of servers for almost 30 users

Is there a way to automate to create SSH keys for large number(Nearly 9000) of servers for almost 30 users
-1
votes
2answers
84 views

Is there a simple way to automatically send through scp any file modified in a folder to a remote folder? (one-way synchronization) [closed]

Put it simply: I have a folder full of files and subfolders with more files. I would like to have a mirror of that folder in a remote server so anytime a file is modified on my machine it gets ...
-1
votes
1answer
162 views

Is rsync more robust than scp for connection reset?

On a big corporate firewall-ridden network, we have traditionally used scp to copy a few brand new files over from one machine to another, as part of the log-file rotation and analysis routine. ...
0
votes
2answers
71 views

Prevent Rsync and SCP from causing page timeouts on LAMP server

I'm trying to run Rsync to move static files from our Dedicated server to our new cloud server. The following command works but when it runs it is stopping any web pages being served rsync -azP ...
0
votes
1answer
33 views

Are ping results dropping when SCP'ing normal?

Whilst scp'ing a file to a server, the ping responses of the server drops to be 6 times slow at ~640ms. Is this... normal? I'm using nginx, is this an indicator that it needs fine tuning?
1
vote
1answer
692 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
200 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 ...
4
votes
4answers
376 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
97 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
92 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
297 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
136 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
227 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
611 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
111 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
480 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
56 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
2k 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
37 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
2k 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
1k 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
24 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
27k 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
73 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
135 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
550 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
139 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 ...
3
votes
3answers
1k 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
2k 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
1k 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 ...