Transferring files from Windows to Linux using pscp command (PuTTY need to be installed)


we have seen most of them find it difficult to transfer files from Windows to Linux. It’s not because they don’t know how to transfer, but due to the restrictions made on the servers for installing software like Filezilla or others.

Most of the IT companies allow to install PuTTY. Using PuTTY, you can transfer files with pscp command:

PSCP Usage:

Usage: pscp [options] [user@]host:source target
      pscp [options] source

 [user@]host:target
      pscp [options] -ls user@host:filespec
Options:
  -p        preserve file attributes
  -q        quiet, don't show statistics
  -r        copy directories recursively
  -v        show verbose messages
  -P port   connect to specified port
  -pw passw login with specified password

Install PuTTY installer on your Windows system.  It will create PuTTY folder in Program Files directory in the Windows machine. Open command prompt and navigate to the folder where PuTTY has been installed(for eg: C:\Program Files\PuTTY\) and run the pscp command as shown below:

C:\>

C:\> cd “Program Files\PuTTY”

C:\Program File\PuTTY> pscp  <file-name> <destination address:/location”

Eg: C:\Program File\PuTTY> pscp c:\a.zip admin@action.test.com:/home/cpadmin

You will be prompted for the destination server password. Once you give the correct password, it will transfer the files

Advertisements

Leave a comment

Filed under Linux

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