如何将 文件/文件夹 从远程 Ubuntu 机拷至本地(scp)
比如:假定远程的 Ubuntu 机已经安装了 SSH 服务
远程 Ubuntu 机:192.168.0.1
远程 文件/文件夹 位置: /home/username/remotefile.txt
本地保存位置: . (当前文件夹)
scp -r username@192.168.0.1:/home/username/remotefile.txt .
如何将 文件/文件夹 从本地拷至远程 Ubuntu 机(scp)
比如:假定远程的 Ubuntu 机已经安装了 SSH 服务
本地 文件/文件夹 位置: locatefile.txt
远程 Ubuntu 机:192.168.0.1
远程 Ubuntu 机保存位置: /home/username/
scp -r localfile.txt username@192.168.0.1:/home/username/