I am using putty to connect to a remote host and I wish to copy a folder containing multiple files from the remote machine to my local machine.I am on a windows machine and the remote machine is running linux. Is there a GUI based tool available?
I presume that you are invoking Putty on a Windows machine and using it to connect to some UNIX machine.
If that the case you cannot do what you want because putty is like a thin client giving you a terminal access.
I would suggest you to install
cygwin using which can help you with both the functionality of Putty and also allow you to use SCP.
cygwin you can do something like
scp -r <user>@<remoteHost>:<pathtofile>/<fileName> <localfilename>
You could do like this, not sure if this will work using
putty, but it's worth a try:
ssh <user>@<host> cat /<path_to_file>/<filename> > <local_filename>
I just tried putty and the above will not work, but if you are running an
ssh server on your windows machine I guess you would be able to do this:
- Connect to the remote unix machine using:
- Transfer the file from the unix machine using:
ssh <user>@<host> cat </path/file ">" filename
You could also use
scp if the program is installed:
scp <user>@<host>:/path/file <filename>
Look at this link: Network File copy using SSH
I suggest (in order of preference):
SFTP through Filezilla Client. Available for Windows, Linux, OSX, in 34 & 64 bits. It works the best, deals with codepages, strange characters, autoretries connections, parallelizes transfers if possible, and works with some other protocols (FTP, SFTP, FTPS... etc). Just connect to:
You can use putty and winscp in tandem. If your server is behind a router first port forward the server so that putty can see the server from your internal network. Second configure putty to tunnel the server so winscp can connect to the server.
server-ip:port(192.168.2.10:22)---router-port forward(22:192.168.2.10:22)---putty(router-ip:port)ssh tunneling(L3100:192.168.2.10:22)---winscp(localhost:3100)
GUI solution is definitely filezilla or WinSCP. ;) Both are great. Filezilla is better at FTP in my experience, but I like the Norton Commander-style WinSCP interface more. I think both should are GPL'd, but might include a payload of crapware you'll probably want to be careful not to install.
But since a lot of people are throwing out non-GUI solutions, suggesting you install OpenSSH tools native to Linux, I thought I'd mention my preferred non-GUI solutions. A fairly obvious lightweight solution is to use other tools that come with putty.
Similar to other explanations provided involving scp. Comes with PuTTy installer, no need to install Cygwin or a Linux Subsystem for Windows.
This is similar to using the ssh command on Linux. It does what PuTTy does, except in cmd.exe.
Example: plink user@host "cat file.txt" > file.txt
The example would stream file.txt on host to file.txt on client.
Really can't think of a major advantage to using plink for a simple download, but instead of streaming it you can pipe it elsewhere (not even bothering to save it) or process it some other way in addition to saving it (e.g., with tee).
I've used plink to get filter out log lines I don't need on the server side before straeming the parts I want to the client. No need to download and save an intermediary file that way.