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
-1
votes
2 answers

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. Trying to automate it is a little tricky. I need…
Healforgreen
  • 109
  • 1
  • 4
-1
votes
1 answer

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: Receiving server: tsunami> get…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
-1
votes
1 answer

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 file2, file3, file5 I want file5 copied to dir1, and…
Corepuncher
  • 191
  • 1
  • 3
  • 9
-1
votes
2 answers

PSCP not copying all the files from Linux Server

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 copy complete folder from above server. Actual…
Sachin
  • 99
  • 3
-1
votes
2 answers

Is there a simple way to automatically send through scp any file modified in a folder to a remote folder? (one-way synchronization)

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 automatically sent over to the remote machine via scp or…
Becky
  • 11
-1
votes
1 answer

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. However, it has recently been observed that the scp…
cnst
  • 13,848
  • 9
  • 54
  • 76
-1
votes
2 answers

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 server--one that already has RSA-only access…
Anon
  • 1
-1
votes
1 answer

SCP corrupted MAC on input

I have SCP and SFTP transfers failing from my linux VPS server (CentOS6.5) to my local desktop Mac. The transfer starts buy fails within the first minute with the error message - "Corrupted MAC on input.Disconnecting: Packet corrupt lost…
jimlongo
  • 103
  • 1
  • 1
  • 3
-1
votes
2 answers

SCP and backing up data

I have a user on my Linux NAS box running barebones and I want to setup SCP but without Shell access and I ONLY want it to access one folder. Is this possible?
-1
votes
1 answer

does scp affect performance

I am using scp to copy a file from remote server to local and it is working as expected. scp remote_server.com:/data/ar_uw2a_vol_0286036c_2012-04-24-05-35-00 . I have 2 questions: 1) Since I am copying file from production server, I do not want to…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
-1
votes
2 answers

Transfer files on SSH to Desktop

Based on the tutorials I've browsed through: This is the Linux scp command syntax to retrieve file or directory from a remote computer: scp -r [login name@ip address] : [/path/filename] . So what exactly is /path/filename on your own computer?…
AlxVallejo
  • 1,086
  • 4
  • 11
  • 19
-1
votes
2 answers

SCP exit 0 when using un-initialized variable and fail to copy

I am trying to test if a file fails to transfer using SCP. I noticed if I use a un-initialized variable, I get exit 0 even though the SCP fails. For example, I have an empty variable called uninitialized_var [root@centos_8_0 scripts]# echo…
-2
votes
1 answer

Data corruption when rsync command fails

I am using rsync to copy data from machine A to machine B over a network. If rsync fails while copying the data from A to B, will the data at B get corrupted ? Does rsync has any inbuilt mechanism to tackle this data corruption ?
-2
votes
1 answer

SCP Doesn't work but SSH connection does. (Amazon EC2)

EDIT: The problem was that I was using a bad username (ec2-user) instead of "ubuntu". Sorry guys for wasting your time. :( Question: What happened: I missmoved (-R) the /home of the EC2 to /var/www/html so when I tried to connect to ssh to this…
Alberto
  • 101
  • 3
-2
votes
2 answers

how to copy file from local to remote via ssh

this is how to shh to server ssh -p 2222 thatilike@192.185.21.105 I want to copy file logo.png to public_html folder on server This is what I tried scp ./logo.png -p 2222 thatilike@192.185.21.105:/public_html/ Don't know why not work
angry kiwi
  • 109
  • 1
  • 1
  • 3
1 2 3
28
29