更改sftp的密码chrootDirectory停止login

所以我有一个chrootdir设置在sshd_config文件夹和用户myuser,它一直工作正常好几个月,然后今天我想改变myuser的密码,所以我做了这个passwd,然后重新启动/etc/init.d/ssh restart ,但现在当我尝试通过更新的密码sftplogin失败。

sshd_config设置:

 Subsystem sftp internal-sftp Match User myuser ChrootDirectory /chrootDIR ForceCommand internal-sftp AllowTcpForwarding no PermitTunnel no X11Forwarding no 

/var/log/auth.log中的日志是:

  sshd[13368]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=[client ip is here] user=myuser sshd[13368]: Failed password for myuser from [client ip is here] port 39154 ssh2 sshd[13368]: Connection closed by [client ip is here] [preauth] 

我不觉得我错过了我的任何步骤?

好的,这个问题似乎在sshd_configAllowUsers的问题,因为当我评论出来并重新启动ssh的时候,我把它加回到文件底部,重新启动并运行,然后我评论下面的那个取出并取消注释原始行,并重新启动ssh,它仍然工作。

所以最后,我不太清楚它是什么,也许ssh没有重新启动。