How do I copy a folder from remote to local host using scp
?
I use ssh
to log in my server.
Then, I would like to copy the remote folder foo
to local /home/user/Desktop
.
How do I achieve this?
How do I copy a folder from remote to local host using scp
?
I use ssh
to log in my server.
Then, I would like to copy the remote folder foo
to local /home/user/Desktop
.
How do I achieve this?
And if you have one hell of a files to download from the remote location and if you don't much care about security, try changing the scp default encryption (Triple-DES) to something like 'blowfish'.
This will reduce file copying time drastically.
Go to Files on your unity toolbar
Press Ctrl + l and write here_goes_your_user_name@192.168.10.123
The 192.168.1.103 is the host that you want to connect.
The here one example
Typical scenario,
explained with an sample,
scp -r -P 27000 abc@10.70.12.12:/tmp/hotel_dump .
where,
From
man scp
(See online manual)In case you run into "Too many authentication failures", specify the exact SSH key you have added to your severs ssh server:
To copy all from Local Location to Remote Location (Upload)
To copy all from Remote Location to Local Location (Download)
Custom Port where
xxxx
is custom port numberCopy on current directory from Remote to Local
Help:
-r
Recursively copy all directories and files/
, Get full location bypwd
scp
will replace all existing fileshostname
will be hostname or IP address-P portnumber
Note: Sometimes the custom port will not work due to the port not being allowed in the firewall, so make sure that custom port is allowed in the firewall for incoming and outgoing connection