Questions tagged [scp]

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.

The SCP protocol is a network protocol, based on the BSD RCP protocol, which supports file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and utilizes the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit. A client can send (upload) files to a server, optionally including their basic attributes (permissions, timestamps). Clients can also request files or directories from a server (download). SCP runs over TCP port 22 by default. Like RCP, there is no RFC that defines the specifics of the protocol.

Source: wikipedia

As per documentation of the most widespread implementation OpenSSH, the protocol is considered "outdated, inflexible and not readily fixed". Using more modern protocols like sftp and rsync for file transfer is recommended.

432 questions
3
votes
3 answers

"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 except what's permitted phpmyadmin - to make things…
ikeywebdev
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

cp from local to usb-drive affects desktop performance

Background While copying a vast number of multi-megabyte sound files, the Kubuntu desktop becomes intermittently unresponsive (the mouse pointer can move, but Firefox, Konsole, and KDE itself temporarily ignore keyboard presses, mouse clicks, and…
Dave Jarvis
  • 235
  • 2
  • 10
3
votes
2 answers

RSYNC and SCP differences

How does rsync differ with scp in terms of transfer speed, maximum transfer size etc ? Or they very similar ? And in what type of scenarios do we need to use these commands ?
Ajov Crowe
  • 133
  • 1
  • 5
  • 12
3
votes
5 answers

secure ftp to specific directory on Ubuntu?

can I set up a secure ftp for somebody (not a current user on the system) for 2 different directories on Ubuntu inside public_html? I don't want to give the user pure ssh account right now. Any other upload,download,delete file secure way is…
Radek
  • 1,153
  • 4
  • 26
  • 39
3
votes
1 answer

Virtualbox: scp between host and guest is very very slow

I have install Virtualbox on a CentOS machine. The guests are CentOS machines too. Their kernel is 2.6.18-194.3.1.el5 and they are CentOS 5.4. The problem is that scp'ing files from a the guests to the host (or viceversa) is very slow…
Daniele
3
votes
3 answers

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-keygen to generate the local keys but I fail in…
user51776
  • 41
  • 1
  • 4
3
votes
2 answers

Bash Script for SCP -- SSH Keys

I'm working as a programmer at the moment, and as a result need to constantly upload my software to remote systems for testing. I have about 7 machines which need to receive copies of everything. At the moment, I have a short bash script with a scp…
BSchlinker
  • 340
  • 2
  • 3
  • 12
3
votes
5 answers

scp and sftp failing with "client_loop: send disconnect: Broken pipe" (MacOS 11.3 issue?)

As of 2 days ago, my attempts to scp files from my laptop to servers consistently fail for files larger than ~200 KB with the error "client_loop: send disconnect: Broken pipe" This coincided with an upgrade of my laptop to MacOS 11.3 (from 11…
2
votes
4 answers

How to copy a file from my Windows laptop to an Ubuntu server while using PuTTY?

I have a remote server and I connect it via PuTTY software. I've downloaded a file to my Downloads folder in my Windows OS laptop. Now, I have to transfer this file to that remote server, using SCP Unix command. Can someone bring me a clear and…
Sara Ben Shabbat
  • 59
  • 1
  • 3
  • 7
2
votes
3 answers

duplicity backup fails: "Private key file is encrypted"

I am trying to upload my first duplicity backup to a remote server and it fails. It is the first time I am using the tool and it did not work before. duplicity /home/me/Documents/ scp://me@//home/me/bak This is the answer I…
transient_loop
  • 499
  • 1
  • 4
  • 15
2
votes
3 answers

Is it possible to set that path of the scp command to use by OpenSSH sshd daemon?

I have a curious problem with OpenSSH in SLES 12 SP4 Linux servers. We install a customized OpenSSH on ourservers, so in each machine we have two versions of OpenSSH, the official package of the operating system and the one that we have…
Ciges
  • 131
  • 6
2
votes
3 answers

scp failing with vast.ai

I'm using vast.ai at the moment, and I've used my container through the site to generate some images that I'd like to download. I've tried to use SCP with my public key (which works 100% of the time through SSH), but it's not letting me use SCP or…
javathunderman
  • 221
  • 2
  • 11
2
votes
3 answers

Achieving very fast (300+MB/sec) file transfer on Linux

I'm working with high end hardware, however I'm hitting cpu bottlenecks in all situations when attempting to move large amounts of data. Specifically, I'm moving large virtual machine image (VHD) files of 2TB between two Ubuntu hosts. My latest…
epea
  • 406
  • 1
  • 9
  • 19
2
votes
1 answer

SSH scp: cannot stat file, that seems to exist

I have file on remote machine. I can list it: ssh matous@xxx ls -la the file is in the reponse: ... -rw-r--r-- 1 matous matous 796672 Oct 11 11:12 D1.db ... Now If I try to scp it to my local machine: scp matous@xxx/D1.db /home/matous I get…
matousc
  • 133
  • 1
  • 6
2
votes
1 answer

"No space left on device" reported; trying to transfer files to EFS through EC2 instance via SCP

My setup is based on this article: https://parall.ax/blog/view/3212/how-to-run-scalable-wordpress-on-aws-amazon-web-services-tutorial I.e. Wordpress hosting via Elastic Beanstalk with a separate RDS instance and and handling file serving/uploads via…
two7s_clash
  • 215
  • 1
  • 4
  • 14