Quantcast
Channel: How to allow ssh to root user only from the local network? - Server Fault
Browsing latest articles
Browse All 4 View Live

Answer by xordspar0 for How to allow ssh to root user only from the local...

A different strategy could be to leave PermitRootLogin set to no for all addresses, but allow a different user to log in and use sudo. One benefit of doing this is that you can limit what that user...

View Article



Answer by Lekensteyn for How to allow ssh to root user only from the local...

The Match address method was already mentioned, but you can also restrict the users (or groups) that are allowed to login onto a system. For instance, to limit logins to the user itai (from anywhere)...

View Article

Answer by Sven for How to allow ssh to root user only from the local network?

Use the Match config parameter in /etc/ssh/sshd_config: # general configPermitRootLogin no # the following overrides the general config when conditions are met. Match Address 192.168.0.*...

View Article

How to allow ssh to root user only from the local network?

I've installed Google-Authenticator on a CentOS 6.5 machine and configured certain users to provide OTP.While editing /etc/ssh/sshd_config I saw a directive "PermitRootLogin" which is commented out by...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images