一、将下载的pscp.exe拷贝到C:WindowsSystem32
上传文件 win10 ——> linux
1 C:Usersxy>pscp C:BaiduNetdiskDownloadjdk-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:Usersxy>pscp root@192.168.64.124:/opt/sql.txt c: est 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