ubuntu - 协议错误:尝试将文件夹/文件从远程服务器传输到本地时,mtime.sec 不存在
问题描述
我在阿里云上使用 Ubuntu 20,尝试使用 cl 从 sftp 远程服务器复制到本地时遇到问题:
scp -r -P 22 sftpibas@localhost:/sftpibas dev
但它提出了
protocol error: mtime.sec not present
如果你想在这里查看我的配置,我附上我的 sshd_config:
Include /etc/ssh/sshd_config.d/*.conf
PermitRootLogin yes
ChallengeResponseAuthentication no
UsePAM yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Match group sftp
ChrootDirectory /home
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
我将文件从远程服务器复制到本地的方法是否错误?欢迎任何建议
解决方案
我试图运行 scp -v。这给了我更多信息:
Sink: This service allows sftp connections only.
protocol error: mtime.sec not present
我用 sftp 试试它。
推荐阅读
- windows-10 - 这个程序中的这个杂散错误是什么?
- batch-file - 我可以将发送给我的 LAN 消息放入程序中进行解密吗?
- python - Python中选定列的条件计数
- python - 在 Django 框架中覆盖 __eq__ 和 __hash__ 的潜在副作用是什么?
- javascript - 如何使用不同的键在每个多边形上创建 onclick 事件处理程序?
- c# - EF - 如果商品相同,我如何将 2 行 ShoppingCart 合并为 1 行
- r - 如何为多项选择问题读取 SPSS 文件?
- c++ - 无法从外部访问父类枚举
- neural-network - nn.Linear() 在 pytorch 的最后一个中做了什么,为什么有必要?
- regex - 正则表达式 - 如果则不然