Download putty software from Putty official website: Putty.exepscp.exepsftp.exe and other software can also be installed under the Windows installation package Putty-0.63-installer.exe
I downloaded the Putty-0.63-installer.exe installation package directly and then installed it directly
Uploading files from Windows to a Linux server using the PSCP method
Enter the Putty installation directory on the cmd command line
Enter PSCP carriage return
PSCP is similar to the Linux SCP commands we use in our normal operations.
Now I upload a file directly from Windows locally to a Linux server
D:\Program Files\putty>pscpd:\mygit\clover\clover-admin\target\clover-admin-dev.war [Email protected]:~/opt/ java/
Now I'm looking under Linux services:
Now I have seen the files just uploaded and moved the files to the WebApps directory under Tomcat
Download files from a Linux server to Windows using the PSCP method
D:\Program FILES\PUTTY>PSCP [Email Protected]:/home/spark/opt/java/tomcat6/webapps/clover-admin-dev.war D://
You can already see the file under Windows d://
Note: Use PSCP can only transfer files, unable to pass the directory, to pass the directory can be used PSFTP
Can open remote host, CD change remote directory, LCD change local directory, ls view remote file list, put upload file, get download file and other commands
To upload files from Windows to a Linux server using the Psftp method:
Of course, you can also use the Putty installation package with the Psftp.exe tool, the primary usage is the same as PSCP:
D:\Program files\putty>pscp-sftp [Email protected]:/home/spark/
If you double-click to run the Psftp.exe, you can open remote host, CD change remote directory, LCD change local directory, ls view remote file list, put upload file, get download file and other commands
We create a test directory under/home/spark/opt/and go to the directory
We entered the D:\Program files\putty\test directory for Windows because there is a file under this licence
Upload file:
On the Linux service view:
Download file:
The D:\Program files\putty\test directory for Windows already has a file that has just been downloaded.
Putty Windows uploads files to Linux servers & downloads files from Linux servers to Windows