1、从服务器下载文件
scp username@servername:/remote_path/filename ~/local_destination
2、从服务器下载整个目录(文件夹)
scp -r username@servername:/remote_path/remote_dir/ ~/local_destination
3、上传本地文件到服务器
scp ~/local_path/local_filename username@servername:/remote_path
4、上传目录(文件夹)到服务器
scp -r ~/local_dir username@servername:/remote_path/remote_dir