scp
scp命令用于在機(jī)器之間互傳文件。
命令:
scp 本機(jī)文件的絕對路徑 用戶@遠(yuǎn)程機(jī)器IP:遠(yuǎn)程機(jī)器目錄
栗子:
scp D:\lupian001\Downloads\mysql-8.0.19-linux-glibc2.12-x86_64.tar root@10.26.37.178:/root/
windows系統(tǒng)本身不支持ssh協(xié)議,要想上面的命令成功執(zhí)行,必須在windows客戶端安裝ssh for windows的客戶端軟件。
我們安裝putty來向網(wǎng)絡(luò)中的Linux系統(tǒng)上傳文件。
Putty
官方下載地址:https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
在CMD命令行中進(jìn)入到putty安裝目錄,使用pscp命令完成Windows文件上傳到Linux機(jī)器
