Enable SSH remote root login on Debian/Ubuntu

Some Debian and Ubuntu based servers have disabled remote root login by default, if you need to enable it, you have update SSH config file.
Switch privileges for root access:
Open config file:
search for line:
PermitRootLogin without-password
or
#PermitRootLogin without-password
Change line to:
Exit nano and restart SSH server
Switch privileges for root access:
- Code: Select all
su - root
Open config file:
- Code: Select all
nano /etc/ssh/sshd_config
search for line:
PermitRootLogin without-password
or
#PermitRootLogin without-password
Change line to:
- Code: Select all
PermitRootLogin yes
Exit nano and restart SSH server
- Code: Select all
service sshd restart