Questions tagged [scp]

SCP stands for Secure Copy Protocol and is related to questions regarding secure file transfer.

The SCP protocol is a network protocol, which supports file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and uses the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit.

Source

240 questions
133
votes
7 answers

scp copy over ssh doesn't work - permission denied error, please?

It's driving me nuts! I just want to transfer one simple file from laptop to server. I'm using ubuntu on both machines. So I have: -rwxr-xr-x 1 sandro 414622 2011-10-14 23:42 sandrophoto-html.tar.gz And I'm sending it using: sudo scp -P XXXX…
user25389
111
votes
14 answers

What is a program similar to WinSCP?

In Windows I use WinSCP to transfer files server-side. It has a very attractive feature that I like best: keeping remote folders up to date. This means, whenever my local file is changed, WinScp will replace the same file on the server with this…
29
votes
2 answers

ssh scp to copy file to remote server port 21

I am trying to copy file from my server to another so I am using the following command: scp root@myhost /home/direc/file.tar username@secondhost:/home/dir I am getting the error: ssh: connect to host secondhost port 22 connection timed out I know…
19
votes
3 answers

"Host key verification failed" error when transfering files using SCP command

When I am trying to transfer files using SCP command I'm getting this error (Removed my IP and RSA key): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! …
rvsi
  • 191
17
votes
5 answers

SCP with two different ports

How can I use scp command to copy files between two remote servers from my local PC ? remote server 1 : IP=67.12.21.133 & port=6774 remote server 2 : IP=67.129.242.40 & port=6774 scp -rp -P 6774 denny@67.12.21.133:/home/denny/testapp1.txt …
11
votes
2 answers

How do I use scp backwards?

I want to do the following: scp root@server.ip.adress:/root/file.txt ~/homecomputer/directory Instead of taking a file from the server though, I would like to send a file. How do I do this?
2
votes
4 answers

scp permission denied after WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

I was using scp and ssh suddenly some warning about SOMETHING NAST! man-in-the-middle attack From that moment when that warning appeared till now, I can copy files via sftp but it is impossible to use scp. What's going on? I tried removing…
Mario
  • 23
2
votes
1 answer

scp autocompletion displays websites as well as file names

When using autocompletion it reveals web sites and file names. So if i type scp goo and then type the Tab key it displays gooey.zip goo.freelogs.com: googleads.g.doubleclick.net: google.tucows.com: googleads2.g.doubleclick.net: …
Meer Borg
  • 4,963
1
vote
1 answer

Error copying folder using scp

I want to copy a folder from remote server. When I use this command to copy just a single file> scp -P 11096 user@server:FullPathToFile WhereToSave it works well, but when I use -r to copy the folder as: scp -r 11096 user@server:FullPathToFile…
Honza
  • 13
1
vote
0 answers

How to create a user that can only use scp?

I want to create a user (named as guest) in my server where I can share my files with others, I only give the guest permission to use scp to get the file with the password I provide, he can't log in to the shell nor do anything else.
Negrito
  • 794
  • 1
  • 11
  • 25
1
vote
0 answers

SCP not working when sending files from remote to local

I'm trying to send some files from a remote server to my local computer. Here's the command I'm using on the remote server that doesn't work: scp name@123.123.123.123:~/path/to/file.name C:\Users\Desktop\Name\file\ This didn't work, and so I tried…
Sean
  • 183
1
vote
2 answers

How to use scp -i without prompting the key

I use the following line in a gitlab pipeline : scp -i "$SSH_PRIVATE_KEY" -r dist user@1.1.1.1:/home/user/preprod However when this line is executed the private key is prompted in the pipeline console, which is obviously a security issue. The…
L. Faros
  • 382
0
votes
1 answer

SCP the other way Around

Let me redo this, I was accessing a sever via ssh, i can access the server easily from my system (the server is in my local network). I tried copying a file from my local system to my server and it failed due to an error (permission denied). And now…
Imrank
  • 51
0
votes
2 answers

how to copy files on a differnt ubuntu machine on network to local ubuntu machine

I am trying to copy files from a ubuntu machine(with IP 10.46.57.44) on to current directory on my ubuntu VMware player using following command but the command doesnt look right? can anyone suggest what is the right command? scp…
0
votes
0 answers

Bash script copy remote directory to local directory only updates file

I want to remote directory to local directory.script works properly but I have face some issue every time SCP update all files. My use case only updated file is copy the remote directory to local directory. if any bash gem helps appreciated your…
1
2