So I have a chrootdir setup in sshd_config to a folder, and the user myuser, it's been working fine for months, then today I wanted to change myuser's password, so I did this with passwd, then restarted /etc/init.d/ssh restart
, but now when I try login via sftp with the updated password it fails.
The sshd_config
settings:
Subsystem sftp internal-sftp
Match User myuser
ChrootDirectory /chrootDIR
ForceCommand internal-sftp
AllowTcpForwarding no
PermitTunnel no
X11Forwarding no
The logs in /var/log/auth.log
are:
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]
I don't think I'm missing any steps am I?