Page 1 of 1

Is SSH keys access available?

Posted: 08 Apr 2024, 02:12
by mts33
Is SSH keys access available?
Without login prompt.

I've generated RSA 2048 SSH key pair and put it into SSH directory of F2-210 model (4.2.41)
But it requres login avery time.

Re: Is SSH keys access available?

Posted: 08 Apr 2024, 12:02
by TMzethar
This may help you.
viewtopic.php?t=2350

Re: Is SSH keys access available?

Posted: 20 Jul 2024, 17:15
by gmanghi
This may help you.
viewtopic.php?t=2350

No, that does NOT help. SSH-ing using password works (TOS 5.1.103) but using private/public keys does NOT.

On the local machine the

ssh-copy-id

command works ok without errors, the public key is correctly added to authorized_hosts on the remote (TOS), but then SSH-ing on the terramaster system always failsback to password authentication.


I have tinkered with ssh_config on TOS at no avail, the configurations to allow login via keys seems correct.

Please confirm or deny if this method is allowed at all on TOS, and is is allowed then what are the proper configs (via GUI or SSH command line) to unlock it.

Thanks!

Re: Is SSH keys access available?

Posted: 20 Jul 2024, 17:59
by tommi2day
for me it works as expected with 5.1.123. pls. make sure authorized_keys has proper permissions(0600) and directories above are only wrtiable by the user(e.g. 0750)

Re: Is SSH keys access available?

Posted: 20 Jul 2024, 18:09
by gmanghi
tommi2day wrote: 20 Jul 2024, 17:59 for me it works as expected with 5.1.123. pls. make sure authorized_keys has proper permissions(0600) and directories above are only wrtiable by the user(e.g. 0750)
Thanks for the reply. Permissions on the .ssh folder and files in it are ok. My unit F2-422 says there are not updates available (using 5.1.103).

Re: Is SSH keys access available?

Posted: 20 Jul 2024, 19:09
by gmanghi
tommi2day wrote: 20 Jul 2024, 17:59 for me it works as expected with 5.1.123. pls. make sure authorized_keys has proper permissions(0600) and directories above are only wrtiable by the user(e.g. 0750)
Updated to 5.1.123, no changes.

Re: Is SSH keys access available?

Posted: 20 Jul 2024, 19:19
by outkastm
TOS works with no issue to login using keys.
Double check your config/keys and make sure you place them on the correct folders/files

Code: Select all

[user@TNAS-4A72 ~]# ssh [email protected] -p 9222
Welcome to TNAS!
[user@TNAS-9A03 ~]#

Re: Is SSH keys access available?

Posted: 20 Jul 2024, 19:32
by gmanghi
outkastm wrote: 20 Jul 2024, 19:19 TOS works with no issue to login using keys.
Double check your config/keys and make sure you place them on the correct folders/files

Code: Select all

[user@TNAS-4A72 ~]# ssh [email protected] -p 9222
Welcome to TNAS!
[user@TNAS-9A03 ~]#
Ok, so it is likely to be a local issue. Anyway I'm a loss: on the remote TOS NAS the .ssh folder and authorized_keys files are in the proper place (the home folder of the user created on the first TOS run/installation) and the authorized_keys file contains the expected keys.

Can anyone share his sshd_configs file, just to compare with mine?