Puttywindows uploads files to the linux Server & download files from the linux server to windows
Download the putty software from the putty Official Website: putty.exepscp.exepsftp.exe and other software. You can also download the putty-0.63-installer.exe installation package for Windows.
<喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + kernel + yrnTw3BzY3C3vcq9tNN3aW5kb3dzyc + 0q87EvP61vWxpbnV4t/kernel/CvDwvcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20150113/20150113095907136.png" alt = "\">
Enter pscp and press ENTER
Pscp is similar to the linux scp command we usually use.
Now I upload a file directly from a local windows Server to the linux server.
D: \ Program Files \ PuTTY> pscpD: \ mygit \ clover-admin \ target \ clover-admin-dev.war spark@10.126.45.56 :~ /Opt/java/
At this moment, I will view it in the linux service:
Now I have seen the uploaded file and moved the file to the webapps directory under tomcat.
Use pscp to download files from linux server to windows
D: \ Program Files \ PuTTY> pscp spark@10.126.45.56:/home/spark/opt/java/tomcat6/webapps/clover-admin-dev.war D ://
You can see this file in windows D: //.
Note: Only files can be uploaded using pscp, but directories cannot be uploaded. You can use psftp to upload directories.
You can use open to open remote hosts, change the remote directory with cd, change the local directory with LCD, view the remote file list with ls, upload files with put, and download files with get.
Use psftp to upload files from windows to linux Server:
Of course, you can also use puttyto install the self-contained psftp.exe tool. The initial usage is the same as that of pscp:
D: \ Program Files \ PuTTY> pscp-sftp LICENCEspark@10.126.45.56:/home/spark/
If the psftp.exe is run in double-click mode, you can use open to open remote hosts, change the remote directory with cd, change the local directory with LCD, view the remote file list with ls, put to upload files, and get to download files.
Create a test directory under/home/spark/opt/and enter the Directory
In windows, go to the D: \ Program Files \ PuTTY \ test directory, because the following file is LICENCE.
Upload files:
View in linux:
Download file:
The Directory D: \ Program Files \ PuTTY \ test for Windows already contains the file you just downloaded.