如何使用ssh将文件从计算机a传输到本地计算机
我正在尝试使用ssh从我的学校linux帐户中获取一些文件。 我有使用连接工作:
scp : ~/folder i want ~/where i want to go
。
但当它转移到转移文件夹时,它给我的消息:
not a regular file
该文件包含.java文件,我想要整个文件夹。 Linux newb在这里所以任何帮助将不胜感激。
谢谢
要使用scp递归复制整个目录,需要添加-r
开关
scp -r remotehost:/path/to/remote/dir/ /path/to/local/dir/