Copy files with PUTTY from host to PC

Download PSCP.EXE from Putty download page
Open command prompt and type set PATH=<path to the pscp.exe file>
In command prompt point to the location of the pscp.exe using cd command
Type pscp
use the following command to copy file form remote server to the local system
  1. pscp [options] [user@]host:source target 

So to copy the file /etc/hosts from the server as user fred to the file c:\temp\example-hosts.txt, you would type:

pscp c:\temp\example-hosts.txt 


Categories: Linux, Servers, Windows

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: