复制远程服务器的文件 报错 scp: not a regular file
文章目录
复制本地linux文件到远程服务器
scp /home/files root@172.16.252.32:/user/aa
复制远程服务器的文件到本地
scp root@172.16.252.32:/home/files /home/files
出现not a regular file 错误 是因为复制的不是一个文件而是一个文件夹,需要加-r 参数
scp -r root@172.16.252.32:/home/files /home/files

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论