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
0answers
3 views

scp from remote to local, where is my file? [migrated]

I'm copying (or at least trying) a file from a remote server to my local pc using the following command: scp user@host:/usr/filename.txt / It copies the file, but I have no idea where it is. What ...
1
vote
1answer
21 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 ...
0
votes
0answers
26 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
19 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 ...
-1
votes
1answer
72 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. ...
3
votes
1answer
63 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
64 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 ...
-1
votes
1answer
25 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
23 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
62 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
180 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
22 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
105 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
78 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
478 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
2k 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
33 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
42 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
88 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
82 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
117 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
97 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
710 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
178 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
17 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
247 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 ...
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
3answers
221 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
449 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 ...
-2
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 ...
-1
votes
1answer
113 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
139 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
707 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
241 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
180 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
233 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
164 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
973 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
214 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
32 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
333 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
168 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
286 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
102 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
388 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
999 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 ...