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
0
votes
1 answer

Elastix, how to MOVE files from one server to other server?

In my office, i have to schedule for moving a file from one computer to other computer (Both are using Elastix). My idea is using cron, scp, and rm to do this. So here are the script that i use: scp -r /home/data/* root@192.168.1.2:/home/data1 && rm…
yudayyy
  • 3
  • 3
0
votes
2 answers

copy files with folders

The following scp is working as expected. scp /home/admin/* root@ec2-50-112-212-73:/ But I need a command that will create the required folder structure on destination server if it does not already exist. Update: I can do it in 2 steps as shown…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
1 answer

Access via sftp/scp an encrypted disk

I would like to do something really paranoid but I am not sure it could be done at least easily... Let's see if I can explain properly: I have a server running debian (could be changed to any other dist but debian is the one I feel more comfortable…
zordor
  • 133
  • 1
  • 11
0
votes
2 answers

Download big files from ESXi?

I want to move one of my vm guest between two ESXi servers. I can't do this with converter or Veaam FastSCP because I'm in another network and using this tools is extremly slow. So I'm trying to copy files from one scp to one of servers in the same…
B14D3
  • 5,188
  • 15
  • 64
  • 83
0
votes
1 answer

cygwin scp to linux box corrupts files, while winscp fixes the corruptions?

I have a bash script for deploying my app jars and sh files from the dev machine to prod machine (centos). it simply calls scp and copies all the necessary files. when I run it from an ubuntu box, everything's good. when I run it from a windows 7…
ihadanny
  • 167
  • 6
0
votes
0 answers

How write .sh script to remote copy files between linux

Possible Duplicate: How to pass password to scp command used in bash script? when use scp to remote copy file between servers then type "YES" and "PASSWORD" I don't know how to auto type it. Can we use with rsync? And How? Thanks
0
votes
1 answer

scp (ssh) fails the first time, works the second time

We have a debian testing server. When I am trying to access the server with scp it doesn't work the first time - the client says, that the remote host closed the connection. When i try the same action again - it works. Then the calls work for some…
bernhardrusch
  • 175
  • 1
  • 9
0
votes
2 answers

How to use directory autocompletion with scp

I use the authorized-key to log into my remote ubuntu server. I need to use scp frequently to cp files from my local machine to my remote machine. I want to enable the autocompletion as I did with my local machine by bash-autocompletion. How could I…
steveyang
  • 673
  • 4
  • 10
  • 16
0
votes
1 answer

SCP - Traditional Web Server to EC2 Instance

I am setting up a backup server instance on EC2 with a public dns for its IP so that other servers on hostgator with dedicated IPs can send files to it. I am confused as to how to use SCP with EC2 and the other questions on here regarding this…
user1062058
  • 505
  • 2
  • 10
  • 17
0
votes
3 answers

Trying to SCP from Local Mac to Amazon AWS Linux Machine

I am trying to copy a file from my local Mac to my Linux instance running on the Amazon EC2 / AWS Cloud. I am able to connect to the server via Terminal, but am unable to get my file up to the server. Here is what I've tried: (yes, I replaced…
Chris
  • 353
  • 1
  • 4
  • 10
0
votes
1 answer

OpenSSH scp restrictions a-la gitolite

Does anyone know of some software that would allow to restrict/tune the scp experience on a single unix user, based on SSH keys? Similar to what gitolite does, or more flexible what rssh can do, but without chroot level tricks, so that any…
martin
  • 101
  • 1
0
votes
3 answers

Get a file by sftp in windows

I want to connect to the linux machine with WinSCP(command line) from Windows. and I want to get logs. There are logs in linux machine /var/log/application/ 090701.log 090702.log 090703.log 090704.log 090705.log winscp…
freddiefujiwra
  • 1,667
  • 5
  • 25
  • 34
0
votes
5 answers

duplicity can't find remote backup directory?

Using my private key to do so, this command allows me to connect to /home/backupUser/backup just fine: $ sudo sftp -oPort=7843 backupUser@192.168.x.x:backup However when I run duplicity, I get the following error: duplicity full --exclude ... /…
leeand00
  • 4,869
  • 15
  • 69
  • 110
0
votes
1 answer

SSH/SCP filebrowser supporting server hopping

To access our file server here, I need to connect first to a server which is public available and then open a second ssh connection to that server. If I need to copy files, I first need to copy them from the file server to the public available…
markus
  • 1,080
  • 5
  • 18
  • 38
0
votes
2 answers

How can I ensure non-corrupt file transfer in linux?

I have script scheduled with cron that transfers a file around to other machines using scp filename user@host:~ and today have noticed that sometimes the md5 of the files don't match. Upon closer inspection it seems the file is corrupt. My question…
James
  • 325
  • 2
  • 11
  • 22