I recreate the file with no luck. Regenerating an SSH authorized_keys file historically has been simply appending the output of your public keys:
Code: Select all
cat id_rsa.pub >> authorized_keysI recreate the file with no luck. Regenerating an SSH authorized_keys file historically has been simply appending the output of your public keys:
Code: Select all
cat id_rsa.pub >> authorized_keysYou can use the following command to generate a key on the client and import it into the TNAS system.
Code: Select all
ssh-keygenCode: Select all
ssh-copy-id -p 9222 [email protected]Check permission for .ssh folder and files. Only owner mast have access.mrslother wrote: ↑30 Nov 2024, 06:50 Problem with SSH and authorized_keys.
Just received u4-423; tried TOS5, updated authorized_keys file with my pub keys. SSH'ing worked great using keys.
Decided to try TOS6 so I factory reset then manually installed TOS6 then updated to latest: 6.535.00158.
For the love of God, I cannot get authorized_keys to work. I can ssh in with password, but no matter what I do with the same authorized_keys file I previously used, it always requires the password.
I've tried various options found in this forum, but nothing worked.
Please help!
Thank you for chiming in. Verified that only the account owner has access:
Code: Select all
myusername@NAS:~# ls -la
total 4
drwxrwxrwx+ 1 myusername myusername 112 Nov 29 14:36 .
drwxrwxrwx+ 1 myusername myusername 32 Nov 29 15:25 ..
-rw-------+ 1 myusername myusername 2365 Nov 30 12:07 .bash_history
drwx------+ 1 myusername myusername 30 Nov 29 14:36 .ssh
myusername@NAS:~# cd .ssh
myusername@NAS:~/.ssh# ls -la
total 4
drwx------+ 1 myusername myusername 30 Nov 29 14:36 .
drwxrwxrwx+ 1 myusername myusername 112 Nov 29 14:36 ..
-rw-------+ 1 myusername myusername 762 Nov 29 14:36 authorized_keys
try on NAS
Code: Select all
tail -f /var/log/auth.log
Lex, you are my hero! The error shown in the auth.log directed me to the right path. As you said above, only the user can have access to the .ssh directory. That was true for my .ssh dir, but not my ~ dir. Fixed. I'm working again.Lex wrote: ↑01 Dec 2024, 20:59 try on NASand login over ssh.Code: Select all
tail -f /var/log/auth.log
Did you get any news on this? I have the same occurring to me on a new F4 424 Pro