Copy files with PUTTY from host to PC

NewImage
 
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 example.com as user fred to the file c:\temp\example-hosts.txt, you would type:

pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt 

Advertisements


Categories: Linux, Servers, Windows

Tags: , ,

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: