sshd“收到断开连接:用户断开连接”

sshd“收到断开连接:用户断开连接”

我可以成功登录 SFTP 服务器(使用 SFTP chrooting),但每次我发出时ls,连接就会关闭:

  • 我已安装/logs/xxx并不/sftp/user/xxx确定我所做的绑定是否与此有关 - 服务器/var/log/secure
    15:39:49 sftp_server sshd[12574]:         Postponed publickey for sftp_user from x.x.x.x port 48598 ssh2
    15:39:49 sftp_server sshd[12573]:         Found matching RSA key: ed:30:22:54:ef:39:c7:3b:2b:6e:d4:5a:b0:78:5d:b7
    15:39:56 sftp_server pam_cyberark[12573]: [cd082fe8-7c4a-4b4a-9b81-545ea00f1532] pam_sm_acct_mgmt: Failure for user [sftp_user]
    15:39:56 sftp_server sshd[12573]:         Accepted publickey for sftp_user from x.x.x.x port 48598 ssh2
    15:39:56 sftp_server sshd[12573]:         pam_unix(sshd:session): session opened for user sftp_user by (uid=0)
    15:39:57 sftp_server sshd[12573]:         User child is on pid 12876
    15:39:57 sftp_server sshd[12876]:         Changed root directory to "/sftp/sftp_user"
    15:39:57 sftp_server sshd[12876]:         subsystem request for sftp
    15:40:39 sftp_server sshd[12876]:         Received disconnect from x.x.x.x: 11: disconnected by user
    15:40:39 sftp_server sshd[12573]:         pam_unix(sshd:session): session closed for user sftp_user
    
  • 我在虚拟机上进行了类似的设置,运行正常,复制了相同的配置(所有权、许可、约束力sshd_config等)

相关内容