PuTTY copies files to Linux server

1. Download putty on the official website https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

2. After downloading, open the directory where you are located, and you will find that there is a pscp.exe that is used to copy files

3. Open cmd and enter the directory where pscp.exe is located, currently D:\Putty

Copy files:

Enter the command: pscp filename root@LinuxIp:/home        

Example: pscp D:\11.txt [email protected]: /home


To copy the folder, use -r:

Enter the command: pscp -r directory root@LinuxIp:/home , press Enter

Example: pscp -r D:\sys\ create a new folder [email protected]: /home


Use "-l" to specify a username:

Enter the command: pscp -l username file name LinuxIp::/home , press Enter

Example: pscp -l humenbird D:\11.txt 111.341.100.167:/home

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324614675&siteId=291194637