ebu*_*168 6 unix cloud ubuntu remote-server
我在 alicloud 上使用 Ubuntu 20,尝试使用 cl 从 sftp 远程服务器复制到本地时遇到问题:
scp -r -P 22 sftpibas@localhost:/sftpibas dev
Run Code Online (Sandbox Code Playgroud)
但它提高了
protocol error: mtime.sec not present
Run Code Online (Sandbox Code Playgroud)
如果你想在这里查看我的配置,我附上我的 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
Run Code Online (Sandbox Code Playgroud)
我将文件从远程服务器复制到本地的方法是否错误?欢迎任何建议
ebu*_*168 10
我尝试运行 scp -v。这给了我更多的信息:
Sink: This service allows sftp connections only.
protocol error: mtime.sec not present
Run Code Online (Sandbox Code Playgroud)
我用 sftp 尝试了一下,它有效。