Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does it make sense to install ssh as non-root under UNIX?

install non-root sense SSH Unix
0
Posted

Does it make sense to install ssh as non-root under UNIX?

0

You can install and run a ssh binary, which you can use to log into another system on which sshd is running. If you want to log in to the remote system without typing in your password, you’ll have to generate a private key in your home directory using ssh-keygen, then put your public key into $HOME/.ssh/authorized_keys. You can also start up sshd yourself as non-root, supplying the -p option so it binds to a non-privileged port (>1024), and then connect from another system with ssh -p. This will only allow connections to your own account, and sshd will, as a rule, not be restarted when your machine reboots. You will have to decide wether this is useful for you or not.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123