场景:想把本地下载好的jdk上传到虚拟机中但苦于寻找工具的麻烦
解决方案:
使用scp命令顺利上传
$ scp jdk-6u45-linux-x64.bin root@192.168.49.128:/home
The authenticity of host '192.168.49.128 (192.168.49.128)' can't be established.
ECDSA key fingerprint is SHA256:UjdAi/ctSPCXdszaZ3ksguIZX58EyqpRnf0xQFJOpjg.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.49.128' (ECDSA) to the list of known hosts.
root@192.168.49.128's password:
jdk-6u45-linux-x64.bin 100% 69MB 27.0MB/s 00:02