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