On different machines on AWS/EC2, I keep having sshd rules being changed after rebooting machines
Original rule:
Match Group sftpusers
ChrootDirectory /data/sftp/%u
ForceCommand internal-sftp
PasswordAuthentication yes
Mofified rule after reboot:
Match Group sftpusers
ChrootDirectory /data/sftp/%u
ForceCommand internal-sftp
PasswordAuthentication no
So basically, the users of this group cannot authentificate for sftp connection, which is really annoying.
Note: PasswordAuthentication is set to No by default. I only allow it for this group of user
Ay idea?