Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub install problem
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Sat Feb 11, 2023 11:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Sat Feb 11, 2023 11:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Sat Feb 11, 2023 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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