3 ms·
Restrict root login from a particular IP address AllowUsers root@112.113.114.115 I use AllowUsers to ensure only users I want can login from SSH.
by steve19 16y ago
Restrict root login from a particular IP address
AllowUsers root@112.113.114.115
I use AllowUsers to ensure only users I want can login from SSH.
- spicyj 16y agoBut what if your IP address changes?
- cuu508 16y agoRoot login shouldn't be your normal entrance. For maintenance stuff use sudo-capable regular user account with public key authentication. If there's some software that requires root login and you cannot do anything about it, enable root login and allow it only from the specific IPs.