View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2366 Location: Kentucky
|
Posted: Sat Feb 11, 2023 11:34 pm Post subject: |
|
|
OK, now for another security police problem.
I need to be able to login as root using ssh, and I need to be able to redirect ports so I can securely tunnel vnc over ssh.
I know how to edit /etc/ssh/sshd_config, assuming it hasn't changed, but how do I allow ssh logins to root?
Remember, these machines are all running behind linux iptables firewall machines and only have nat access to the internet, so they are not directly reachable from the internet. You first have to pierce a few firewalls. _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Sat Feb 11, 2023 11:55 pm Post subject: |
|
|
According to the documentation, by default, root is permitted to log in over ssh. I don't think Gentoo changes this, so this should work once you put the public key in place. If it is not working for you, check that the permissions on ~root, ~root/.ssh, and ~root/.ssh/authorized_keys are strict enough. Code: | PermitRootLogin
Specifies whether root can log in using ssh(1). The argument must be yes,
prohibit-password, forced-commands-only, or no. The default is
prohibit-password. |
|
|
Back to top |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2366 Location: Kentucky
|
Posted: Sat Feb 11, 2023 11:59 pm Post subject: |
|
|
Got it fixed. Just had to edit /etc/ssh/sshd_config appropriately.
Thanks everyone for all the help. Now to clone this machine 4 more times, then customize each one for its destined role... _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|