Thursday, September 9, 2010

How to transfer files from PC to linux machine using putty

Open Command Prompt
[type 'cmd' at run command and press Enter]

traverse to putty directory

[cd x:\directoryX\......\putty]

PSCP is the applicatin file that support you to transfer files through shell connection;

use the following command syntax:

PSCP "[SOURCE FILE/S]" [LINUX_USER_NAME]@[IP|WORKSTATION_NAME]:/[DESTINATION_LOCATION]

Example: 
D:\>putty\PSCP.EXE "D:\Priyankara\MIT project\jetty\*.*" root@192.168.5.121:/roo
t/Desktop

you will asked for the password of the destination system

root@192.168.5.121's password:

Then you'll see the files that are transferring/transferred.

jetty-distribution-7.1.6. | 5324 kB | 2662.4 kB/s | ETA: 00:00:00 | 100%
jetty-distribution-7.1.6. | 0 kB |   0.2 kB/s | ETA: 00:00:00 | 100%
jetty-distribution-7.1.6. | 5395 kB | 1798.5 kB/s | ETA: 00:00:00 | 100%
jetty-distribution-7.1.6. | 0 kB |   0.2 kB/s | ETA: 00:00:00 | 100%
jetty-distribution-7.1.6. | 5417 kB | 2708.9 kB/s | ETA: 00:00:00 | 100%
jetty-distribution-7.1.6. | 0 kB |   0.2 kB/s | ETA: 00:00:00 | 100%


congratulations :-)

if you want to transfer files from a linux workstation to another, you can use rsync command.

No comments:

Post a Comment