我在alicloud上使用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
我将文件从远程服务器复制到本地的方法是否错误?欢迎任何建议
答案 0 :(得分:1)
sshd_config强制连接到sftp,结果是(倾斜)错误。
删除此行,然后重新加载/重新启动sshd:
ForceCommand internal-sftp
答案 1 :(得分:0)
我试图运行scp -v。这给了我更多信息:
Sink: This service allows sftp connections only.
protocol error: mtime.sec not present
我用sftp尝试了它。