Wednesday, August 16, 2017

How to Transfer files between local machine and remote machine

Hello Guys, After long time I'm going to explain small trick that will help you to transfer files between local machine and remote machine using pscp. You can download it from putty website.It's better to install putty that will bundle with PSCP.

After install putty open command prompt
    run->cmd

then set path variable 

set PATH=C:\Program Files\PuTTY

Send a file


after that you can send file (sample.txt) using this command

pscp c:\Users\Saga\sample.txt  USERNAME@REMOTE_SERVER_ADDRESS:/home/folder1

then you have to enter password for remote server .after that file will be transferred. 

This is the  location of  sample.txt   c:\Users\Saga\sample.txt 
This is the location of destination    /home/folder1

Receive a file


To receive a file you need to enter bellow command 

pscp   USERNAME@REMOTE_SERVER_ADDRESS:/home/folder1/sample2.txt  c:\Users\Saga\.

make sure to enter . (dot) after the destination path

Thank you very much if you have any question please post a comment bellow . I'll try my best to help you