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
1answer
22 views

Can scp maintain original file structure on remote server?

Supposing we have the following files to copy to a remote server: /dir/test.php /dir/inc/inc.php I now want to copy both files to the remote server as follows: cd /dir/ scp test.php inc/inc.php ...
1
vote
1answer
17 views

vsftpd server allows different permissions than ssh

I setup a vsftpd server on Debian 8.2, and haven't changed anything in the config file except for local_root=/. When I try to upload a file using Filezilla to a directory I have group write ...
-4
votes
2answers
41 views

Moving files from one linux server to another using scp [closed]

I want to move some files from one server to another . I want the public_html directory from server 1 to be transferred to server 2 . Can anyone give me the syntax to do so ? rsync keeps crashing my ...
0
votes
1answer
28 views

Downloading MongoDB dump file from EC2

I created a dump file using mongodump command in my EC2. Then I tried to download it to my local computer for backing up purpose using a similar command shown bellow as described here. (at the very ...
0
votes
1answer
41 views

Connection timed out when trying to SCP from one EC2 instance to another

I'm trying to SCP from one ec2 instance to another (via SSH client). Both server use the same keys. My initial investigation into this led me to believe this would all be possible by using ...
0
votes
1answer
21 views

Compressing and streaming files from a linux server

I have a linux server with a lot of unused files, but it is low on disk space. I'd like to take a copy of the files before deleting them. There is not enough disk space to store the compressed version ...
0
votes
3answers
96 views

How to transfer 6 TB files using SCP?

I have 2 Linux Centos Servers. The First one is 6.7 and the second one is 7. How can I transfer all files and folders from /home/sv1/public_html from server 1 to /home/sv2/public_html in server 2 ? ...
0
votes
1answer
51 views

scp hangs after successful file transfer in CentOS 7 VM?

I have 2 CentOS7 VMs running under VMware Esxi 6. On one of them, when I successfully complete a new SCP file transfer, the system hangs for about 2- 5 minutes (and sometimes indefinitely until the ...
2
votes
0answers
242 views

How to prevent SSH freezes over an openvpn client to client connection

I have the exact same issue as the one described here, but I cannot request clarification from the author, since I am a new user and I cannot post a comment on that, so I am posting a new question (I ...
1
vote
3answers
450 views

scp - Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

Trying to copy files over from serverB to serverA and get the following error: root@server:~# scp /root/test.txt root@111.111.111.111:/home/somefolder/ Permission denied ...
-1
votes
1answer
32 views

rsync - file is 8 bytes larger on recipient

I have a file that I have tried transferring across the wired LAN via both scp and rsync, and both have yielded the same result. When I run du file on the file after the transfer, the file is 8 bytes ...
1
vote
2answers
38 views

Copy VM folder from ESX 3.0.1 host

I am in need of the ability to copy files/folders from an ESX 3.0.1 datastore. Unfortunately, this version does not allow this via the VI client, and as such I have been looking to do this using ...
0
votes
0answers
55 views

Capistrano change SCP to SFTP setting

I tried to set up a simple capistrano deployment, and get the following error when deploying: SSHKit::Runner::ExecuteError: Exception while executing as user@server.com: SCP did not finish ...
0
votes
2answers
68 views

Download file using terminal to local directory

I m trying to download a file but can't seem to get it right. scp root@ipaddress:oo_db_bck_2_aug.sql /home If I try to set the path to /home/username/Desktop the username folder doesn't exist. ...
0
votes
3answers
89 views

Strange behavior of SCP through .sh file

I'm hitting a strange issue with SCP on cygwin, scp $HOME/deploy.sh user@host:/tmp works fine, files get copied to the remote system. But the same command inside a test.sh won't work. I can see ...
0
votes
1answer
84 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
406 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 ...
-1
votes
1answer
136 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
vote
1answer
203 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
698 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
160 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
326 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
2k 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
109 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
195 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
21 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
94 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
119 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
540 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
12 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
211 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
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
141 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
203 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
155 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
876 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
193 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
31 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
307 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
155 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
261 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
97 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
38 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
1k 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
340 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
845 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
106 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
143 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
582 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 ...