3 ms·
I wanted to stay away from server side settings. But I will say I have mixed feelings about both of these. If you're using a firewall, the default port matters
by gpapilion 15y ago
I wanted to stay away from server side settings. But I will say I have mixed feelings about both of these.
If you're using a firewall, the default port matters less. My practice is to restrict SSH to VPN connections only, or from a single bastion host. Finding networks that block odd ports starts loosing its charm after you've changed the port, and several years ago it was a pain to get some mobile ssh clients to use alternate ports.
Root login I generally believe should be turned off, and it certainly should not be allowed with passwords. I tend to think a well configured set of keys(one for each user who needs root) poses the same risk as users with sudo *, or the root password in su. As much as I hate to admit it there are some occasions where remote root access has saved the day.