首页 > 编程知识 正文

如何通过ssh文件,ssh如何文件

时间:2023-05-06 08:54:55 阅读:218007 作者:4945

可以使用scp命令,scp通过扩展cp的语法,使用ssh协议来跨系统copy文件

1.从另外一个系统(比如:服务器)拷贝文件到本系统(本机) scp username@hostname:/path/to/remote/file /path/to/local/file 2.从本系统(本机)拷贝文件到另外一个系统(服务器) scp /path/to/local/file username@hostname:/path/to/remote/file 3.从一个系统(服务器A)拷贝文件到另外一个系统(服务器B) scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。