传输本地文件至远程服务器
scp (-P **) /LOCAL_PATH/LOCAL_FILE REMOTE_USER@REMOTE_ADDRESS:/REMOTE_PATH/REMOTE_FILE
传输本地目录至远程服务器
scp -r /LOCAL_PATH REMOTE_USER@REMOTE_ADDRESS:/REMOTE_PATH
传输远程服务器文件到本地
scp -r REMOTE_USER@REMOTE_ADDRESS:/REMOTE_PATH/REMOTE_FILE /LOCAL_PATH
传输远程服务器目录到本地
scp -r REMOTE_USER@REMOTE_ADDRESS:/REMOTE_PATH /LOCAL_PATH
网友评论