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协议才行。

posted @ 2020-11-18 13:02  hike_bug  阅读(4470)  评论(0编辑  收藏  举报