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

Tomcat editing a users authorized_keys file

I have a java application running on tomcat8. This application has a method for users to upload a public ssh key, which is then added to a local users authorized_keys (limited to scp on a single folder), so that they can use scp to the server using…
bwright
  • 123
  • 8
0
votes
1 answer

User can access to only one directory with scp

I want to create a user for my Ubuntu server. I will use this user to copy some files from server to my local computer. So permissions should be really limited. This user can only reach to /some/path directory in the server and read files. Nothing…
Eray
  • 139
  • 2
  • 12
0
votes
2 answers

How to get past kerberos blocker on scp-ing files?

I have a cluster with one master and one slave. From the master node, I'm able to ssh into the slave just by doing: ssh -vvv @. Now, when I scp from master to slave it does not work: sudo scp -vvv @://,…
makansij
  • 265
  • 1
  • 5
  • 12
0
votes
5 answers

File transfer speed in LAN network

I transfer from 1 linux host to another linux host around 15TB data. The sender host have those network cards: [44.206701] igb: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX [44.274112] bonding: bond0: link status definitely up…
Shlomi
  • 331
  • 2
  • 9
  • 19
0
votes
1 answer

Cannot upload files with scp, but with pscp it works

I can login to a remote server with a login, which has a private key. This private key is without any password. When using PuTTy on Windows, I can login to that remote server without problems given that private key. Using pscp on Windows with this…
devopsfun
  • 123
  • 5
0
votes
1 answer

Check size and names via scp

I used this cmd scp -r Demo/ user@host:/Demo/ How can I set scp[or fstp] to check size and name of all files and folder? and just transfers new ones.
Mohammad
  • 23
  • 9
0
votes
1 answer

scp to host, without a specifc path using subdomain

I'm wondering if there was some way to scp a file, without specifying a path, so instead of scp example example@example.com:/path/to/directory then do this scp example example@sub.example.com and then the host already knows which directory you…
Tomas0206
  • 3
  • 2
0
votes
1 answer

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 to perform chown -R jetty:jetty to the app.war…
0
votes
1 answer

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 AgentForwarding like so: scp -o "ForwardAgent yes" -v…
braks
  • 103
  • 1
  • 4
0
votes
1 answer

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 before downloading. I've tried scp -C…
NoChecksum
  • 125
  • 2
  • 8
0
votes
3 answers

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 ? The data is 6TB and I can't move them using…
0
votes
2 answers

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. Just leaving a / showed activity but I can't find the…
Ciprian
  • 107
  • 4
0
votes
4 answers

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 that scp command output is same as the last stdout,…
gkns
  • 111
  • 1
  • 5
0
votes
1 answer

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 of root user use SSH key pair instead of password…
sisko
  • 165
  • 1
  • 8
0
votes
1 answer

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 why it does that, am I not using the continue…