Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download directory/file using SSH? [closed]

Tags:

linux

ssh

putty

I'm using putty SSH into a server and need to download a directory onto my computer. I tried using filezilla, but it seems like the directory is hidden (I can't see it in filezilla). I can see the directory in putty, but it's in blue color. So my question:

How to download the directory? How to set where to save the downloaded directory? example: desktop

Thanks!

like image 826
Kakenx Avatar asked Oct 12 '15 07:10

Kakenx


People also ask

How do I download a file from SSH session?

Scp Command The "scp" command is a secure version of the Unix copy command "cp." Once you establish an SSH session with the remote machine, locate the file you wish to copy. The "scp" command is a better option if you have only a few files to transfer. The "-p" flag preserved the file modification and access times.

How do I download a folder from server using SSH?

you can scp - which will allow you to securely copy between hosts. Its located in /usr/bin on linux. SCP or secure copy command copies files and directories from one computer to another in batch. (For interactive user interface you can use SFTP as "user545035" stated.

How do I download a folder from PuTTY?

Just input the IP, Host + Pwd, then can copy and paste from/to server/local pc.


1 Answers

Try using scp http://www.tecmint.com/scp-commands-examples/

scp -r username@source_host:path/to/source_folder ~/Desktop

If you are on windows only, winscp is a good solution http://winscp.net. Here is how to show hidden files in winscp http://winscp.net/eng/docs/ui_pref_panels.

like image 100
NaN Avatar answered Sep 20 '22 12:09

NaN