Questions tagged [scp]
SCP stands for Secure Copy Protocol and is related to questions regarding secure file transfer.
244
questions
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?
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....
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 ...
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 ...
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 ...
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?
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.
...
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?)
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 -...
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:~/...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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]:[...
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 ...
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 ...
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
...
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
...
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 ...
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 ...
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 ...
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 ...
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....
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....
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,...
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?
...
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 ...
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 ...
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 ...
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 ...
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]....
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 ...
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 (...