ssh w/o password
Hello,
I'd like to establish a ssh-connection to my nas326 without entering the password using Public Key Authentication.
AFAIK I'd have to enable enable "RSAAuthentication yes" and "PubkeyAuthentication yes" in the /etc/ssh/sshd_config (right?).
But after a reboot the default config is back, so what ca I do to maintain my modified config?
Thanks in advance
Björn
Best Answers
-
You only need to change that keys if they are currently 'no'. If not specified, they default to 'yes'. I vaguely remember that you only need to setup the right stuff in ~/.ssh/. But meanwhile it might become a problem to get the client to use the private key, as the algorithms on the NAS are outdated.
Further this only works for admin. The home directory for root is on a ramdisk, so it won't keep ~/.ssh/ over a reboot.
0 -
Okay, thanks a lot that could explain why it doesn't work. I'll find a work-around.
Thanks again
Björn
0
All Replies
-
It seems that after a reboot, the configuration may be overwritten by a daemon or script. Perhaps you could create a script in a file that is not deleted, and schedule it to run periodically to ensure the configuration is applied on the device?
0 -
Hello suisei,
thanks for your reply. I like the idea but the problem is, that I'd need to restart the sshd as well to ensure that the current config is loaded.
Restarting sshd does not work on the NAS326 (afaik).0 -
When you log into the NAS, you have root access, which essentially gives you full control over the system. However, as far as I know, some basic command/services might be removed from the NAS. You could try downloading additional packages that might help you restart the services.
0 -
You only need to change that keys if they are currently 'no'. If not specified, they default to 'yes'. I vaguely remember that you only need to setup the right stuff in ~/.ssh/. But meanwhile it might become a problem to get the client to use the private key, as the algorithms on the NAS are outdated.
Further this only works for admin. The home directory for root is on a ramdisk, so it won't keep ~/.ssh/ over a reboot.
0 -
Okay, thanks a lot that could explain why it doesn't work. I'll find a work-around.
Thanks again
Björn
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 271 USG FLEX H Series
- 274 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 389 News and Release
- 84 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 74 Security Highlight