Puttywindows uploads files to the linux Server & amp; downloads files from the linux server to windows

Source: Internet
Author: User
Tags pscp scp command

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.