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

Is transferring files over private network between two servers from remote third server possible?

I've got a local machine, Server A. This server has a public internet connection to Server B and Server C using private Key A. Neither Server B or Server C have access to Key A. However, Server B and Server C share a private network with one another…
StevieD
  • 514
  • 8
  • 24
0
votes
0 answers

Scp: permission denied when trying to copy file from server to local device

I'm running $ scp user@domain.tld:/path/to/file . The file's not in the server's home directory. I ran sudo chmod a+r on the server's file and sudo chmod a+w on my local directory, but nothing changed.
Daniel
  • 1
  • 1
0
votes
2 answers

Handling SCP within a group of servers with different keys

I am working with a group of servers on a VPN with ubuntu 18.04, and for each server I have a different key file. However, when I try to securely copy files (like securely propagate munge key across servers) I am denied as I don't have an…
0
votes
1 answer

activemq url starts with scp://

I have inherited a system where the activemq address looks like this scp://localhost:61616 ActiveMQ itself only seems to be configured for tcp. I can't find any reference to that protocol here:…
Alex028502
  • 103
  • 3
0
votes
1 answer

systemd service fails to authenticate scp between two servers

I have written a service that triggers a shell script to backup a postgres database, on a CentOS7 server. It dumps the backup file into the /tmp/ folder and then it is supposed to copy the file across to another server, but something is amiss, I…
iFunction
  • 111
  • 1
  • 1
  • 5
0
votes
1 answer

how to do scp in linux

I am getting following error while doing scp, what could be the reason? [~/workspace/xr-dev/call-home/core/src] /usr/bin/scp myfile.c host2:/scratch/shirohua/ shirohua@host2's password: usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i…
Rajesh
  • 1
  • 4
0
votes
1 answer

Trying to implement a drop box account using rssh

We have a requirement to export logs from several appliances. (Actually Infoblox DNS servers). The appliances can be configured to export using scp (but only using password). So we have no alternative to having the passwords in the appliance…
Russell Fulton
  • 201
  • 1
  • 3
  • 17
0
votes
1 answer

Powershell - Run SCP command from CYGWIN but also expand variables

I need to expand variables before running the SCP command as a result I can't use single quote. If I run the script using double quotes in Powershell ISE it works fine. But doesn't work if I run the script through command prompt. I'm using zabbix…
user630702
  • 495
  • 10
  • 32
0
votes
3 answers

Transfer a bigger MySQL/MariaDB DB fast, save and restartable

I have to transfer a Drupal site with a 43GB MariaDB DB via ssh/scp to another server. I have a limited downtime window early in the morning. In the past I transferred smaller DB's (<3GB) directly via pipes like this: ssh -l webuser 10.0.0.99 "cd…
Matthias
  • 179
  • 1
  • 7
0
votes
1 answer

Why can't copy to other server by scp with openvpn?

2 nodes: node1 node2 Node1 $ openvpn --genkey --secret /etc/openvpn/server.key $ ssh-copy-id user@node2:/etc/openvpn/client.key $ chmod 644 /etc/openvpn/server.key $ scp -i ~/.ssh/id_rsa /etc/openvpn/server.key…
rawmain
  • 291
  • 1
  • 7
  • 17
0
votes
2 answers

Use wget on a cluster with ssh-tunnel

Normally I can sercure copy files from one machine to another using > scp -oProxyJump=user@login.node.org ssh user@main.node.org:/home/user/my_files/* . which is very slow for large data sets. I was told that the machines I am using has a very fast…
-1
votes
1 answer

How to copy certain file with its path from remote to my local machine via scp?

I want to copy all files with extension *out to my local machine form my account keeping the same tree path of each file my trail is scp --parents -r @remote:~/path/*out ./ such trail doesn't work
-1
votes
1 answer

rsync copy contents of newest directory on remote server

I'm trying to copy the contents of the newest directory from a remote server to a local server. Problem is that the directory names are date based, so it can't be static value in the command. I'd like to run the command from a cron as well so I'm…
Chris
  • 121
  • 3
-1
votes
1 answer

Transfer folder to AWS Ubuntu server. Permission denied (publickey)

I installed shiny server on an AWS EC2 Ubuntu instance following instruction here: https://www.rstudio.com/products/shiny/download-server/ I tried to transfer a folder to a remote directory: /srv/shiny-server by typing in terminal: scp -r…
Hao Yang Wu
  • 3
  • 1
  • 2
-1
votes
1 answer

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 co-workers on the same local network experience…