Is SSH keys access available?

IPv4/6, Port, VPN, proxy, SSH, remote access and more.
Locked
User avatar
mts33
Posts: 12
Joined: 12 Aug 2022, 04:19

Is SSH keys access available?

Post 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.
User avatar
TMzethar
TM Support
Posts: 2819
Joined: 27 Oct 2020, 16:43

Re: Is SSH keys access available?

Post by TMzethar »

This may help you.
viewtopic.php?t=2350
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
gmanghi
Posts: 7
Joined: 04 Aug 2022, 15:40

Re: Is SSH keys access available?

Post 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!
User avatar
tommi2day
Posts: 56
Joined: 10 Jan 2023, 02:15
Germany

Re: Is SSH keys access available?

Post 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)
main: T9-450
User avatar
gmanghi
Posts: 7
Joined: 04 Aug 2022, 15:40

Re: Is SSH keys access available?

Post 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).
User avatar
gmanghi
Posts: 7
Joined: 04 Aug 2022, 15:40

Re: Is SSH keys access available?

Post 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.
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: Is SSH keys access available?

Post 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 ~]#
User avatar
gmanghi
Posts: 7
Joined: 04 Aug 2022, 15:40

Re: Is SSH keys access available?

Post 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?
Locked

Return to “Network”