SCP命令常用操作
2021-03-30 本文已影响0人
骆昊宇
传输本地文件至远程服务器
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