Skip to main content

Questions tagged [scp]

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

Filter by
Sorted by
Tagged with
145 votes
4 answers
250k views

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's user avatar
  • 1,825
134 votes
8 answers
889k views

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....
user avatar
118 votes
1 answer
467k views

Copy folders (not one file) using SSH ubuntu? [duplicate]

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 ...
aero's user avatar
  • 1,315
111 votes
14 answers
317k views

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 ...
Summer Nguyen's user avatar
67 votes
6 answers
306k views

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 ...
inorganik's user avatar
  • 1,735
63 votes
4 answers
158k views

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 <file> stalled Why does this happen? How do I resolve it?
Lelouch Lamperouge's user avatar
51 votes
5 answers
279k views

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. ...
Loz's user avatar
  • 613
37 votes
2 answers
62k views

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: ...
Osis's user avatar
  • 723
33 votes
4 answers
19k views

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 [email protected]:~j0h/b which ...
j0h's user avatar
  • 14.9k
29 votes
2 answers
138k views

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 ...
user1613566's user avatar
21 votes
3 answers
91k views

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 [email protected] -p 2000 Now I need to ...
Prabesh Shrestha's user avatar
21 votes
2 answers
23k views

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 ...
Alcuin Arundel's user avatar
19 votes
3 answers
58k views

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 ...
Xbuffer's user avatar
  • 191
19 votes
3 answers
168k views

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

When I am trying to transfer files using SCP command I'm getting this error (Removed my IP and RSA key): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST ...
rvsi's user avatar
  • 191
18 votes
6 answers
57k views

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?)
coffee-grinder's user avatar
17 votes
5 answers
43k views

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 -...
linuxspider's user avatar
16 votes
1 answer
7k views

How do I scp files of size less than x?

I am developing something on my laptop and scp'ing the files to a high performance PC (a server with no monitor). Out of laziness I just do this currently (on the laptop): scp -r ~/project/* server:~/...
iammax's user avatar
  • 348
11 votes
5 answers
38k views

What is the difference between scp and cp?

I'm really new to the command line and Ubuntu and I have recently learned that there is the scp command as well as the cp command. I tried to use an scp command to move a directory from Point A to ...
BDD's user avatar
  • 220
11 votes
2 answers
26k views

How do I use scp backwards?

I want to do the following: scp [email protected]:/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?
Jason Basanese's user avatar
11 votes
5 answers
3k views

Is there any SCP program available for Ubuntu that does not require SFTP on a remote host?

I need a program that can manage files on a remote device running Linux using SCP. The remote device runs OpenWrt. On Windows there is a perfect one WinSCP. it is weird that there is no native program ...
Pilot6's user avatar
  • 90.4k
10 votes
7 answers
5k views

How can I perform a secure automatic file transfer between two servers?

I would like to transfer some files from a server A to a server B daily (for backup purposes). However, I cannot find a way that does not create security breaches. My goal is that someone with sudo ...
Joseph Budin's user avatar
10 votes
4 answers
105k views

How to copy (or move) files from remote machine to local machine?

I SSH tunneled from my local Ubuntu machine to a remote Ubuntu machine and I want to copy/move files from the remote Ubuntu to the local one. I need to do that from within the SSH session (i.e, from ...
user avatar
10 votes
2 answers
25k views

Escape username spaces in SCP

I've been playing around with SCP for a while, and I've been able to transfer files from one place to another. It all worked nicely until I needed to copy a file from Ubuntu to a Windows user who had ...
cavpollo's user avatar
  • 203
9 votes
1 answer
11k views

Why is rsync 2x faster than sftp?

I'm transferring huge files, over a network to a destination server, totaling ~ 67 GB with individual zip files of size ~ 7GB. I tried copying to the destination using both sftp and rsync. rsync ...
kmario23's user avatar
  • 1,019
8 votes
1 answer
14k views

Permitting scp but not ssh - without scponly

I'm migrating a Debian server to Ubuntu 16.04. One of the packages on the Debian server is scponly which acts as a shell and permits ssh connections for scp purposes only (not login or running ...
abligh's user avatar
  • 375
7 votes
1 answer
39k views

GUI SCP Client? [duplicate]

Is there a SCP Client like WinSCP just for Linux? it has to support SCP and not SFTP as the other questions suggested as the Server I have to connect to, only understands ssh and scp no sftp its a ...
FabiF's user avatar
  • 71
6 votes
3 answers
7k views

How can I avoid having to enter a password for an scp command by hard-coding the password into my script?

I've created a bash script that sometimes need me to enter some information (other machine password / username) when I run it. Is there a way to prevent this by entering (hard-coding) this ...
Taieb's user avatar
  • 169
6 votes
3 answers
18k views

incorrect permissions after copying over scp

I'm using cygwin in windows 7 to copy a directory to an ubuntu machine using this command. scp -rp -P 54322 /cygdrive/c/xampp/htdocs/. [email protected]:/home/user/somefolder/ After copying all the ...
Kelbizzle's user avatar
  • 275
6 votes
0 answers
6k views

ssh works, scp hangs forever

I would like to copy files from my laptop to another machine - a headless TX2 -- over my home wifi network. Both my laptop and the TX2 are running Ubuntu 16.04 and both have the latest version of ...
brikeats's user avatar
6 votes
2 answers
2k views

xubuntu xterm strange lag/echo issue with ssh

I have a xubuntu box and using its terminal everything is fine locally; but when I ssh to any server, the remote echo seems to be holding the last line until a key is pressed or the window is resized. ...
5 votes
1 answer
33k views

How to make scp go faster?

I use the following command to transfer files across my home network (when I have to transfer a lot of files, I usually archive them with the tar utility): scp -c blowfish [FILE] [USER]@[ADDRESS]:[...
misha's user avatar
  • 972
5 votes
4 answers
13k views

How can I connect to a server via SCP in Lubuntu 15?

In Windows I can use WinSCP. In the question What is a program similar to WinSCP?, it says that you can use Nautilus’s built-in function to do this job. But in Lubuntu there’s only PCManFM. I tried to ...
godsendpie's user avatar
5 votes
3 answers
28k views

Setting up a network between a host and guest virtual machine

(I'm running ubuntu server 12.04 on virtual box) I'm trying to transfer a file (scp) from my laptop to one of the directories of a virtual machine. I tried sharing folders, but that failed. I'm a bit ...
anonymous's user avatar
  • 211
4 votes
2 answers
33k views

Where would you find SCP logs?

I can't seem to get SCP logs (on the server) to show up anywhere. I've searched through quite a few pages, including: scp / ssh log on ssh-server http://ubuntuforums.org/showthread.php?t=1789437 ...
rew's user avatar
  • 69
4 votes
1 answer
2k views

scp \033H message

Having a weird scp issue: $ scp [email protected]:~/test.txt ./ Password: \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H ...
mvledn's user avatar
  • 73
4 votes
1 answer
11k views

How would you go about backing up a remote Ubuntu VPS via SSH?

So, as I said I have a VPS, Raspberry Pi and a plan, but I am in need of some advice, so here goes. I have a VPS with prgmr.com which I ahve up and running nice and smoothly without any issues. I ...
Daniel Groves's user avatar
4 votes
1 answer
146 views

Secure remote copy with exceptions

In order to use some data that are stored and produced remotely I first download them via scp servername:/.../big_directory/* ~/. There are many files and the command includes everything. These files ...
SO_32's user avatar
  • 187
4 votes
1 answer
3k views

Showing progress in whiptail while using sshpass and SCP

I'm writing a bash script that automates the building, copying and running of a golang app to a remote server. I'm using whiptail to let the user pick some options, enter in some details (e.g. SSH ...
Grayda's user avatar
  • 141
4 votes
1 answer
733 views

How to close sftp connections made by dolphin?

after using dolphin to connect to a ssh site, for example: sftp://myserver.com and using my user and pass... how can I close that connection so I can log in with another user? It does always auto ...
Andrew's user avatar
  • 41
3 votes
2 answers
25k views

SCP from remote to local does not work

I can scp just fine from local to remove by doing: scp trip3.csv [email protected]:/home/pi/ But when I try to do remote to local it says no such file or directory: scp [email protected]:/home/pi/trip3....
metersk's user avatar
  • 131
3 votes
1 answer
1k views

Copy a list of files to remote computer while creating parent folders

I have a list of files lying in subdirectories which I have created by calling find: for f in $(find . -name "myFile.txt"); do echo "$f" >> filelist.txt; done The content of filelist....
mcExchange's user avatar
  • 3,178
3 votes
2 answers
2k views

Unable to transfer file from windows subsystem for linux to remote server

I am currently working on a windows 10 laptop. I have installed the ubuntu subsystem (instead of PUTTY) in it to access the remote server. When I launch the ubuntu subsystem from my windows start menu,...
The Great's user avatar
  • 133
3 votes
1 answer
5k views

scp - files getting different sizes in destination folder

While using scp, the total file size was noticed to be 0.1G less in the destination folder and, a few files were noticed to be larger in size in the destination folder. What could have caused this? ...
kiran bbnl's user avatar
3 votes
1 answer
3k views

How we can copy one file from one server to other in cron

Can anybody let me know how we can copy a file from one server to another in a cron. I know about scp but how we use it in a cron, since we need to pass the password. Edited I found this link Expect ...
Pramod's user avatar
  • 251
3 votes
0 answers
6k views

scp from a remote server - Permission Denied

I am trying to copy a tar file from a remote server to the local machine. The command is sshpass -p 'somepass' scp someuser@somedomain:/some/dir/some_file.tar.gz /local/dir Syntactically, the ...
Alex's user avatar
  • 224
3 votes
1 answer
2k views

File Transfer mode in sftp

I am a newbie to ftp and sftp as well as Linux. Can you please advise what is the default mode of file transfer in sftp? I know in ftp, we have transfer modes (binary and ascii). It would also be ...
aka_learner's user avatar
2 votes
2 answers
18k views

How can I copy folder's contents and tree-structure into a remote directory with same structure

Is it possible in SSH terminal to copy a folder directory into another directory that will share mostly the same folder names/structure but will have unique files. In a simple example: If FOLDER1 ...
James's user avatar
  • 123
2 votes
3 answers
27k views

Where does a file copy to when I scp it?

i have this file myfirst.txt located on a cluster of computers down the hall, i.e.: myname@login1:~> ls myfirst.txt which i want to download to the home directory: scp [email protected]....
user2413's user avatar
  • 14.5k
2 votes
1 answer
3k views

SSH local STDOUT to file on remote server

I need to copy output from local command to remote server f.e: user@localhost$ ls | scp - user@remotehost:/user/remotefile got an error: -: No such file or directory sorry, but a cannot identify ...
Kirill's user avatar
  • 21
2 votes
3 answers
15k views

SCP over SSH with no password - cannot get it to work

I have an Ubuntu 16.04 server with SSH, I have configured a keypair so I can SSH on to a remote system with no password, this works fine. I am trying to SCP from Local (system1) to ther remote (...
icarusbop's user avatar
  • 101

1
2 3 4 5