scp
小于 1 分钟
上传
#!/bin/bash
#upload
scp [本地目录] root@127.0.0.1:[远端目录]
下载
#!/bin/bash
#download
scp root@127.0.0.1:[远端目录] [本地目录]
密钥上传
scp -i [密钥文件] -P [端口] -r [本地目录] root@127.0.0.1:[远端目录]
密钥下载
scp -i [密钥文件] -P [端口] root@127.0.0.1:[远端目录] -r [本地目录]
#!/bin/bash
#upload
scp [本地目录] root@127.0.0.1:[远端目录]
#!/bin/bash
#download
scp root@127.0.0.1:[远端目录] [本地目录]
scp -i [密钥文件] -P [端口] -r [本地目录] root@127.0.0.1:[远端目录]
scp -i [密钥文件] -P [端口] root@127.0.0.1:[远端目录] -r [本地目录]