Just wanted to put this out there since on a normal iso install root account is disabled (unless maybe you enabled it)
I'm going to assume you didn't and you're using a cloud based service like maybe Digital Ocean, as they have root enabled unless you setup a key.
If this is the case, as I also use digital ocean, I find it is sometimes easier to allow root login, but restrict access by ip address.
In this way, if you're doing something where you definitely need root access, you can save some time by logging into root rather than your user account and then using sudo and having to put your password in again.
This is also done in /etc/ssh/sshd_config
At the bottom of the file add the line
AllowUsers root@youripaddress
Or if I'm way off base here and you enabled the root account you can also limit access by local address only.
AllowUsers [email protected]
Or you can allow any computer access on your LAN
AllowUsers [email protected]
If you do go this route, you may also want to define your regular user as well, cause I think if you setup AllowUsers and don't include that user it won't let you connect. So as an example, let's say you want to allow root access from xxx.xxx.x.xx, but allow user fer access from anywhere, the setting would look like
AllowUsers [email protected] fer@*
@*
means from anywhere
You can also DenyUsers
much in the same way to prevent certain users ssh access.