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

transfer file from unix to windows?

i want to transfer file from unix server to windows 2003 server i download copssh on windows 2003 and openssh is already installed in unix ... i execute the following command :- scp -r /file_in_unix/ user@windows_hostname:\c:\\ the following output…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
12 answers

How do you backup your site?

How do you backup your site? I am especially interested when you have a large site (20GB+) with thousands of files? Is there anything clever than the usual tar -zcvf backup2010.tar.gz ./public_html/ After answering the above, how do you maintain a…
Abs
  • 1,559
  • 5
  • 19
  • 32
0
votes
1 answer

scp takes more time to copy and stalls

I am using Ubuntu with a 2Mbps link. I would do scp to the Ubuntu cloud servers to copy a .war file which is 14MB. It used to take only 2 minutes to copy this .war file under /tmp of the cloud server. Now it takes more than 15 minutes. While doing…
user53864
  • 1,723
  • 11
  • 37
  • 66
0
votes
1 answer

SFTP connection times out too soon

The SFTP connection to the server through a client(Cyberduck) times out too soon(1 min or so). Is there some default setting in the server that I can modify to change this situation? EDIT: Figured it out. The problem is actually the newer version of…
rubayeet
  • 117
  • 7
0
votes
1 answer

Scponly: how can I block changing directories?

I want to block users from changing directories when they log in via scponly's shell. How can I do that? I need to be able to provide users with their own upload directory that only they can see and read/write. They should not be allowed to…
mmr
  • 369
  • 2
  • 6
  • 18
0
votes
3 answers

Determine if the "yes" is necessary when doing an SCP

I'm writing a Groovy script to do an SCP. Note that I haven't ran it yet, because the rest of it isn't finished. Now, if you're doing an scp for the first time, have to authenticate the fingerprint. Future times, you don't. My current solution is,…
corsiKa
  • 383
  • 1
  • 8
  • 19
0
votes
1 answer

file transfer automation

Server A generates a file and scp's it to Server B. I have cron running on Server B that each minute looks for new files that were copied over. My question is- how can Server B ensure that the file that was copied over is actually done being…
rizen
0
votes
3 answers

Variable directory names over SCP

We have a backup routine that previously ran from one disk to another on the same server, but have recently moved the source data to a remote server and are trying to replicate the job via scp. We need to run the script on the target server, and…
nedm
  • 5,630
  • 5
  • 32
  • 52
0
votes
1 answer

For rsyslog - to what facility do ssh and scp belong to?

I am trying to send all the ssh and scp error messages to a pipe and to configure this in the rsyslog.conf I need to know the facility for these services. Does anybody know this or a resource where there are exemples for the list of facilities? In…
A Mere
  • 3
  • 1
0
votes
0 answers

Why does ssh command fail whereas scp command succeeds inside of linux box on aws codebuild?

On a linux vm inside of an automated codebuild CI/CD Pipeline this command executes as expected: scp -v -i /path/to/key ./scp_test.txt user@host:$target_dir However, a similar ssh using the same credentials does not: ssh -vvv -i /path/to/key…
0
votes
1 answer

Webmin backup via ssh not working with remote rush shell

I want to make backups from Webmin, initially the configuration backups, to a remote server securely. I'm new to Webmin and to rush. This seems to be a config issue with Webmin, rush, or sshd. My Backup storage server 10.20.0.130 (Ubuntu 20.04) has…
0
votes
1 answer

Where to put files into my Ubuntu server so I can access them publicly from a web browser?

Sorry if this is a very dumb question, but I'm totally new to server administration. I already know how to add files to a web hosting solution through FTP/SFTP, however I have no idea how I can do this with a server. I just got access to an Ubuntu…
Another Dude
  • 103
  • 3
0
votes
0 answers

SCP on Ubuntu OpenSSH Server for Cisco backups

I am having a bit of an issue and I believe I need some help. We have an On-prem SFTP server which will be deprecated soon, so in the mean time I need to set up another SFTP option in AWS running on EC2. I have looked at AWS Transfer Family, but the…
0
votes
1 answer

Openstack nova cold migration failing on rocky 9 due to sftp subsystem error

I have deployed a multinode deployment of OpenStack using kolla ansible (deployed following the openstack deployment guide) on 2 rocky linux 9.1 machines. When attempting to migrate one instance between nodes, it fails and the instance enters the…
N. Komodo
  • 1
  • 1
0
votes
1 answer

Routine SCP Command fails (VPN/Network Active)

My dev machine runs on Fedora (36). Recently I attempted to scp a file to a remote server (CentOS 7) and got a cryptic error message: scp: dest open(""): No such file or directory The command looks something like: scp -C foo.ext…
virtualeyes
  • 675
  • 3
  • 12
  • 28