Transfer files to/from session I'm logged in with PuTTY
I'm logged into a remote host using PuTTY.
What is the command to transfer files from my local machine to the machine I'm logged into on PuTTY?
Solution 1:
This is probably not a direct answer to what you're asking, but when I need to transfer files over a SSH session I use WinSCP, which is an excellent file transfer program over SCP or SFTP. Of course this assumes you're on Windows.
Solution 2:
- Click on start menu.
- Click run
- In the open box, type cmd then click ok
- At the command prompt, enter:
c:>pscp source_file_name userid@server_name:/path/destination_file_name.
c:>pscp november2012 [email protected]:/mydata/november2012.
- When promted, enter your password for server.
Enjoy
Solution 3:
PuTTY usually comes with a client called psftp which you can leverage for this purpose. I don't believe you can do it through the standard PuTTY client (although I may be proven wrong on that).
PuTTY only gives you access to manipulate the remote machine. It doesn't provide a direct link between the two file systems any more than sitting down at the remote machine does.
Solution 4:
You can also download psftp.exe from:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
When you run it you type:
open "server name"
Then:
put "file name"
(Type help to get a full list of commands.)
You can also type get <file name>
to download files from a remote machine to the local machine.