ssh遠(yuǎn)程登錄服務(wù)器 如何通過(guò)ssh上傳文件到服務(wù)器?
如何通過(guò)ssh上傳文件到服務(wù)器?您需要使用SCP命令行。SCP< local file name>< user name>@<ssh server address>:< u
如何通過(guò)ssh上傳文件到服務(wù)器?
您需要使用SCP命令行。SCP< local file name>< user name>@<ssh server address>:< upload save path is the file name>/*注意:您不能登錄到服務(wù)器*/例如:如果要將當(dāng)前目錄中的a.txt文件上載到ssh服務(wù)器上的測(cè)試文件夾并將其更改為b.txt,其中ssh服務(wù)器網(wǎng)站是127.0.0.1,用戶名是admin。代碼如下:程序代碼SCP a.txt管理員@127.0.0.1:/home/Neo/test/b.txt下載也很簡(jiǎn)單。您只需要將“本地文件名”與以下服務(wù)器的信息交換