Linux使用SSH上传下载文件

查看目录

ssh user@host command ls "/path"

上传文件

scp /filepath(localpath) user@host:/filepath(remotepath)

下载文件

scp user@host:/filepath(remotepath) /filepath(localpath)
原文地址:https://www.cnblogs.com/enhe/p/12141709.html