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
votes
0answers
14 views

scp copy from one server to another in background [duplicate]

I was trying SCP from one external server to another and I understand that completely but how can I do this in the background? My files are like 100 Gb and I really don't want to wait around for it ...
20
votes
5answers
24k views

How to make scp copy hidden files?

I often use SCP to copy files around - particularly web-related files. The problem is that whenever I do this, I can't get my command to copy hidden files (eg, .htaccess). I typically invoke this: ...
0
votes
0answers
38 views

What are the ways to control banners on solaris 10 for scp?

I work with a farm of solaris 10 servers with some inconsistent behaviors in terms of displaying banners/motd. This time, I am trying to do scp from one server to another. Between some servers I get ...
-1
votes
1answer
88 views

Why is scp with compression slower than without?

I needed to transfer a 20 GB KVM vdisk file, storing the root filesystem of a CentOS 6.5 VM, from one lab server to another. The large file size and the fact that I had once compressed such a vdisk ...
154
votes
5answers
167k views

Can scp copy directories?

Now I can only copy a single tar file,how can I copy directories recursively with scp?
1
vote
3answers
3k views

change scp default directory in `~/.ssh/config`

The scp (openssh) command accepts relative paths as host:path/ which are relative to the home directory on the host. I would like to change location of the default directory. For example, I would ...
1
vote
1answer
67 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 ...
-1
votes
1answer
21 views

heartbeat timeout error in tsunami deamon

I am trying to transfer a large file from server A to server B using tsunami. I am getting following error: Heartbeat timeout of 15 seconds reached, terminating transfer. And here are details: ...
0
votes
0answers
16 views

find user's scp history [duplicate]

I am using an Ubuntu Server over an AWS instance. To find out the scp history on server I can check the .bash_history file cat .bash_history | grep scp But, does the server maintains a log of all ...
-1
votes
3answers
2k 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
2answers
59 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 ...
0
votes
1answer
121 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
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?
0
votes
3answers
54 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" .... ...
1
vote
2answers
200 views

How do you manage ssh keys to add a second user?

I used this article to set up keys and a user to login to a Ubuntu server from a Windows box using Putty. I would now like to add an additional ssh user that will login from a MacBook. I used ...
0
votes
3answers
5k 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 ...
3
votes
3answers
7k 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 scp files and delete files older ...
2
votes
1answer
95 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 ...
7
votes
2answers
6k views

What does limit performance of scp?

I've two Debian Linux machine connected via 1 Gbit LAN. I can measure this with a raw HTTP file transfer with wget which gets around 100MB/s in either direction. When I now use scp, the maximum ...
0
votes
1answer
149 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
52 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, ...
2
votes
2answers
2k views

scp - skip a file while running

I'm running scp and copying a folder from remote server, I'm running with -rl , so i see the files being copy, is it possible to skip current file some way?
0
votes
0answers
82 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
52 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 ...
30
votes
8answers
19k 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
votes
1answer
177 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. ...
-1
votes
2answers
53 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
196 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
2answers
680 views

How to use ssh to copy a file multiple hops with agent forwarding?

I have a group of servers all properly configured with SSH agent forwarding. It is a typical bastion server style configuration where the only machine you can connect to from the outside is server A. ...
1
vote
2answers
262 views

Remote editing with diff / patch?

I do most of my work in vim. I much prefer to edit files using vim locally rather than sshing into a server and running vim there, for many reasons, one of the most important being UI responsiveness ...
21
votes
5answers
16k 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 ...
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
120 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. ...
31
votes
8answers
22k views

Quickest way to transfer 55GB of images to new server

I currently have two CentOS servers. I need to know how and what the quickest way would be to "tar" up the images directory and SCP it over? Is that the quickest way that I just suggested, because ...
0
votes
4answers
16k 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?
6
votes
2answers
2k 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
70 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
104 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 ...
4
votes
1answer
6k 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 ...
0
votes
1answer
97 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
501 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 ...
5
votes
1answer
6k views

scp without known_hosts check

Is there any chance to skip the known_hosts check without clearing known_hosts or disable in ssh.conf? I neither have access to known_hosts nor ssh.conf yet. Don't find any suitable in man.
0
votes
1answer
128 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" ...
1
vote
5answers
242 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
vote
3answers
3k 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
23 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
votes
2answers
92 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 ...
0
votes
2answers
77 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
35 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?