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

-2
votes
1answer
38 views

Overwriting /etc/ Files between two servers

I'm the process of migrating an NIS server from one machine running Ubuntu 9.10 to a new one running Ubuntu 14.04.4 Server, and following these instructions: How do I replace an NIS master server? ...
39
votes
9answers
32k 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?
0
votes
1answer
17 views

Putty: pscp file transfer change permission

I am transferring my file using pscp with the command below: pscp target\app.war root@127.0.0.1:/jetty/webapps What would be the syntax to change the ownership of the app.war file ? In other words ...
0
votes
0answers
10 views

Openstack accessing external machines

I am looking for a solution but I also do not know the cause of the problem. There is an odd setup and I think it is a network issue. The machines will be referred to the name in bold for this post/ ...
1
vote
1answer
22 views

rsync - incremental file list sent but files not updated on server

I am working with some source files from a desktop computer. The source files compile and run on a remote server. As there is a significant delay between me and the server, I have decided to use ...
32
votes
6answers
33k 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
1answer
10 views

pscp works for one account but does not work for another

I have two accounts A, B both registered on the windows server 2008 R2. There is a script in which I use pscp module of putty to transfer files from the server. Problem being that the command runs ...
27
votes
6answers
28k 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
2answers
94 views

Efficient parallel remote file copy

I'm looking for a way to distribute a big folder (~40-60g) to multiple servers (4 or more). A simple scp command in a loop is working already. I would like to have a faster method but simply ...
3
votes
2answers
6k views

Linux SCP defining destination port

How can I specify a port for the destination ip? When I do scp -p 0000 it still tries to connect on port 22, not the one I'm specifying. scp svn_backup.tgz user@xxx.xxx.xx.xxx:/path/to/new/svn/
2
votes
1answer
51 views

SSH works both ways, but scp and rsync only one way

I have been using SCP and rsync to transfer some files between two servers using SSH keys. Suddently SCP and rsync don't work anymore from server 1 to server 2. They don't give any error or ...
43
votes
8answers
39k 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 ...
1
vote
3answers
120 views

scp to copy file to remote server fails because of permissions

I think my fundamental problem is that I don't fully understand how ssh / scp works. But I don't what to google to try to read up on my question. Problem Description I have created a bash script ...
1
vote
3answers
73 views

Error when passing string to scp in for loop

I'm grabbing file list from server via find via ssh for f in `ssh -p ${SSH_PORT} -l ${SSH_USER} ${SSH_HOST} -t "find ${DIR_REMOTE} -type f | grep jpg" 2> /dev/null` When I echo the list in the ...
1
vote
3answers
409 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 ssh-...
1
vote
7answers
1k 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 ...
4
votes
5answers
13k views

Copy multiple folders to a single destination with robocopy

I'm looking for a solution to use robocopy to copy several folders from a directory onto a distant network share. I want to choose several folders out of a directory that contains hundreds of folders ...
1
vote
1answer
31 views

ssh and scp redirects to my own server

recently I've installed a new server, and got a lot of problems with the ssh access. Now, when I try to scp from server A ( old, Debian 7.1 ) to B ( new, Debian 7.1 ), or when I try to ssh from A to ...
-2
votes
1answer
3k 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 ...
2
votes
2answers
1k 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
0answers
27 views

Copy .pub keys to Gitolite Server, university environment

I am a new Technical Officer for a South African university, and being a bit green, I'm not sure if this is the perfect place for this. Please let me know if it is not. The problem I have a Gitolite ...
-1
votes
1answer
20 views

Why does scp congest my network?

I observe a weird behaviour when I copy files to a remote machine using scp. Take for example this scp command with no special options: scp my.phar remote:apps/ Copying works flawlessly, however my ...
6
votes
2answers
12k views

Why is scp not overwriting my destination file?

I'm trying to back up a file via the command scp /tmp/backup.tar.gz hostname:/home/user/backup.tar.gz When I run it, the scp progress bar shows up and it looks like its transferring the file, ...
4
votes
8answers
87k 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 ...
-1
votes
1answer
168 views

Jenkins execute shell scp

I have a Jenkins build where I am trying to copy a war file from one vm to another. I want to do this using scp. I've tried running this in the shell outside of Jenkins and everything works fine. ...
266
votes
8answers
304k views

Can scp copy directories?

Now I can only copy a single tar file,how can I copy directories recursively with scp?
3
votes
1answer
98 views

Why is scp so slow on my network?

scp is slow in our company network. For testing, I am copying a file from a remote server which is connected via IPsec between the routers. When using scp -vv I get lots of messages like this: ...
0
votes
1answer
80 views

How to maintain ssh connection for multiple scp transfers?

I'm using the scp command to copy files from my local machine (ArchLinux) to my server (CentOS 6.5). But for each scp command a new connection is established and although I'm using SSH keys for ...
5
votes
5answers
5k views

Running multiple scp threads simultaneously

Running multiple scp threads simultaneously: Background: I'm often finding myself mirroring a set of server files a lot, and included in these server files are thousands of little 1kb-3kb files. All ...
-1
votes
1answer
26 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
34 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 ...
22
votes
5answers
19k views

Difference between scp and sftp

What is the difference between sftp and scp?
-4
votes
2answers
70 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
303 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
27 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
109 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
91 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 ...
11
votes
3answers
35k views

Can I scp a folder that has sub folders?

I have a folder that contains files for a static website like: /site/index.html /site/css/css.css /site/js/js.js /site/images/... If I update something on my laptop, I want a single command to send ...
2
votes
0answers
730 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 ...
2
votes
2answers
7k views

VMware seems to throttle SCP copies, what can be the reason?

I seem to have a strange issue with my VMware cluster, where I get inconsistent SCP transfer rates. I have Cluster1 and Cluster2, physically in different regions. I need to transfer large vmdk from ...
1
vote
4answers
4k 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 ...
1
vote
3answers
3k 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 (publickey,gssapi-keyex,...
-1
votes
1answer
34 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 ...
2
votes
4answers
31k views

howto copy files on esxi datastore using scp?

how to copy files on esxi4 datastore (fs=vmfs) over network using console (SSH)? giving up older question:have seen on vmware forums that its not possible have a USB drive NTFS attached to ESXi4 host....
1
vote
2answers
48 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 SSH/...
2
votes
3answers
1k 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 ...
0
votes
3answers
143 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
116 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 ...
0
votes
0answers
105 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
3answers
4k views

Force SFTP/SCP to copy files with a remote directory's permission

I am having a problem with SFTP and SCP where files that are copied are not inheriting the permissions of the remote parent directory. I have seen similar questions on serverfault where the umask of ...