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

249 questions
148
votes
4 answers

Progress bar for scp command

Is there any way to display a progress bar while copying from server to local (or vice versa) using scp?
Abdul Shajin
  • 1,855
142
votes
8 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
119
votes
1 answer

Copy folders (not one file) using SSH ubuntu?

I am trying to copy a folder to remote Ubuntu server using command line ssh connection, i understand it's doable to transfer a file using scp but i have many files in a folder iam trying to copy to that remote server, how is that done? anyone?…
aero
  • 1,325
114
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…
67
votes
4 answers

Why does scp get stalled? How do I resolve it?

When I attempted to copy a file (of size, ) over the network using scp I get a error stalled Why does this happen? How do I resolve it?
67
votes
6 answers

Copy files from remote Ubuntu to local Mac

I've searched all around and can't seem to find this... I'm trying to copy a private key to my local machine which is a Mac. When I fire up terminal on my mac, I get Jamies-iMac:~ jamie$ So after I ssh into my Ubuntu server I tried scp…
inorganik
  • 1,735
52
votes
5 answers

Using scp to copy files from remote to home machine

This is probably a simple error, but I can't work it out. My computer hostname is Felix (hostname -f returns Felix) I am trying to move a file from my university account to my home computer using scp. I can ssh easily to the remote computer so that…
Loz
  • 623
40
votes
2 answers

How to make scp to use ipv6 addresses?

When I try to use scp over IPv6 addresses I get this: scp -6 osis@::1:/home/osis/test.file ./test.file ssh: Could not resolve hostname : Name or service not known With scp all I ever get is: ssh: Could not resolve hostname : Name or service not…
Osis
  • 753
33
votes
4 answers

How does using the tilde work as a shortcut to my home directory?

I was confused, trying to copy some files from one PC to another. I have it figured out, but the syntax is still confusing to me. This works: scp ~/Desktop/Volenteer.png jay@server.ip:~j0h/b which puts Volenteer.png in the folder /home/j0h/b. …
j0h
  • 15,365
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…
user1613566
  • 293
  • 1
  • 3
  • 4
22
votes
3 answers

How do I scp a filename with spaces?

I'm having a little difficulty using scp to transfer files from a remote computer. The issue apparently has to do with the name of the directory the files are contained in. They're on a CD drive called photos 4 (with a space between photos and 4).…
21
votes
3 answers

copy with ssh with port other than 22

How do I copy files from my local to some remote server which hosts ssh on port other than default (22). I usually connect to the server using ssh username@remotehost.com -p 2000 Now I need to copy files with scp user@localbox:~$ scp…
20
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
  • 301
19
votes
6 answers

How to SCP a file from Mac -> Ubuntu VirtualBox?

I have a Mac (OS X) and a VirtualBox running Ubuntu. I want to SCP a 500mb file from the Mac to the VirtualBox. How do I do this? (Probably something to do with /etc/hosts?)
19
votes
3 answers

Copy files from a server via ssh to dropbox.

I have a user in a linux server (Debian) with ssh access, and have some files on it. I need to copy the files to my Dropbox. but I donot want to copy to my Dropbox in my PC and Laptop, I want to first copy to my Dropbox account directly then sync to…
Xbuffer
  • 191
1
2 3
16 17