pscp 从win10远程传输文件到centos7,多个虚拟机之间传文件

时间:2024-04-26 15:36:04

一、将下载的pscp.exe拷贝到C:\Windows\System32

上传文件 win10 ——> linux
1 C:\Users\xy>pscp C:\BaiduNetdiskDownload\jdk-8u161-linux-x64.tar.gz root@192.168.64.124:/opt
2 root@192.168.64.124's password:
3 jdk-8u161-linux-x64.tar.g | 185308 kB | 10294.9 kB/s | ETA: 00:00:00 | 100%
下载文件 linux ——> win10
1 C:\Users\xy>pscp root@192.168.64.124:/opt/sql.txt c:\test
2 root@192.168.64.124's password:
3 sql.txt | 1 kB | 1.0 kB/s | ETA: 00:00:00 | 100%
Linux scp 命令 实现两台虚拟机之间相互copy
[root@localhost 桌面]# scp /opt/jdk-8u161-linux-x64.tar.gz root@192.168.64.123:/opt
The authenticity of host '192.168.64.123 (192.168.64.123)' can't be established.
ECDSA key fingerprint is 58:7b:dd:74:39:6f:f3:e0:d3:32:fd:bb:b0:23:0a:e2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.64.123' (ECDSA) to the list of known hosts.
root@192.168.64.123's password:
jdk-8u161-linux-x64.tar.gz 100% 181MB 45.2MB/s 00:04