从本地上传文件到远端服务器
scp /Users/koolearn/settings.xml root@xx.xx.xx.xx:/yuyu
scp:命令
/Users/koolearn/settings.xml :本地文件地址
root@xx.xx.xx.xx :远端服务器用户名@ip
:/yuyu :远端服务器文件夹路径
从远端服务器传文件到本地
scp root@47.94.218.52:/home/yuyu/setting.xml /users/koolearn/downloads
从本地上传文件到远端服务器
scp /Users/koolearn/settings.xml root@xx.xx.xx.xx:/yuyu
scp:命令
/Users/koolearn/settings.xml :本地文件地址
root@xx.xx.xx.xx :远端服务器用户名@ip
:/yuyu :远端服务器文件夹路径
从远端服务器传文件到本地
scp root@47.94.218.52:/home/yuyu/setting.xml /users/koolearn/downloads