scp -r /path/to/local/directory username@remote_server:/path/to/remote/destination
如果要拷贝整个目录,需要加上 -r(递归)选项。
-r