Quantcast
Channel: How to allow ssh to root user only from the local network? - Server Fault
Viewing all articles
Browse latest Browse all 4

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

$
0
0

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.*    PermitRootLogin yes

See man sshd_config


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>