Thursday 18 December 2014

Copying files from windows to linux and linux to windows using pscp.exe

Copying files from windows to linux and linux to windows can be achieved by pscp.exe(PuTTY secure copy client). This comes along with the putty installation.
You can install putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Generally, putty installation directory is: C:\Program Files\PuTTY

In command prompt we have to execute the commands like below:
Linux => Windows :
pscp.exe username@hostname:sourcepath_on_linux/file1 destinationpath_on_windows
 This command copies the file1 from linux to windows machine into the given destination path.
           
Windows => Linux :
pscp.exe sourcepath_on_windows\file2 username@hostname:destinationpath_on_linux
This command copies the file1 from windows to linux machine into the given destination path.


No comments:

Post a Comment