[Help] [BUG] SSH key based authentication does not work
Posted: 23 Aug 2025, 12:16
Hi
I noticed that ssh key based authentication does not work. The file rights are no correct in the home folder, after the below enhancements it start working.
TNAS logs during the debugging:
I noticed that ssh key based authentication does not work. The file rights are no correct in the home folder, after the below enhancements it start working.
Code: Select all
chmod 600 ~/.ssh/authorized_keys
chmod 700 ~/.ssh/
chmod 755 ~/Code: Select all
Aug 22 22:46:06 TNAS sshd[34104]: Authentication refused: bad ownership or modes for file /home/<username>/.ssh/authorized_keys
Aug 22 22:46:10 TNAS sshd[34104]: Connection closed by authenticating user <username> 172.16.1.168 port 50603 [preauth]