Skip to content
Advertisement

Is it possible to copy files from local windows directory to remote linux directory?

I am using ssh on a remote linux machine from my desktop using putty. I want to copy a txt file which is in the desktop of my local windows machine to the remote linux directory. How can i do that using shell when i am logged in to remote machine using ssh? Thanks for the help!

Advertisement

Answer

Yes it can be possible, but you need additional software for that. Both Putty or Git bash will work. Since I use git as VCS, I also use it to send files from my Window 7 laptop to remote AWS Linux machine.

Example login:

JavaScript

To send a file from Window to remote (like AWS ec2):

JavaScript

To send a directory from Window to remote:

JavaScript

To receive a file from remote to Window:

JavaScript

To recieve a directory from remote to Window:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement