win10下scp的使用


scp 是 secure copy 的縮寫,在windowslinuxUnix系統之間互傳文件。

1.在windows下使用

先到win10應用商店安裝windows terminal。

PS C:\Users\Hanjun> scp.exe D:\let-demo\UE\module\rrc.cpp root@10.1.5.66:/root
The authenticity of host '10.1.5.66 (10.1.5.66)' can't be established.
ECDSA key fingerprint is SHA256:K9QA26xlCzZIFQ0lfWDLPLsMmq+XDMQZTfYMw4b9bAA.
Are you sure you want to continue connecting (yes/no)?
Warning: Permanently added '10.1.5.66' (ECDSA) to the list of known hosts.
root@10.1.5.66's password:
rrc.cpp 100% 955 467.7KB/s 00:00
PS C:\Users\Hanjun> scp root@10.1.5.66:/root/rrc.cpp e:/
root@10.1.5.66's password:
rrc.cpp 100% 955 467.2KB/s 00:00

2.在Linux下使用

scp administrator@192.168.3.181:/d:/test/test.dat /root

請注意:

因為windows系統本身不支持ssh協議,所以,要想在Linux上面用scp命令往windows傳送文件,必須在windows客戶端安裝ssh for windows的客戶端軟件,比如winsshd,使windows系統支持ssh協議才行。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM