1、本地虚拟机Centos上传文件到阿里云服务器Centos:

scp local_file remote_username@remote_ip:remote_folder 

eg: scp /root/test  root@47***ip***0:/data/(已经测试成功)

2、从云服务器下载文件的到本地:

scp test@**ip***:/test/file /usr/test/

如果中间遇到:

-bash: scp: command not found

运行命令:yum install openssh-clients 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐