参考网址:http://blog.csdn.net/xingzhedai/article/details/52586341
1、从服务器下载文件
scp username@servername:/remote_path/filename ~/local_destination
2、上传本地文件到服务器
scp ~/local_path/local_filename username@servername:/remote_path
3、从服务器下载整个目录
scp -r username@servername:/remote_path/remote_dir/ ~/local_destination
scp user@远程地址:~/文件目录 本地目录
4、上传目录到服务器
scp -r ~/local_dir username@servername:/remote_path/remote_dir
网友评论