Option one:
Switch privileges for root access:
Code: Select all
su - rootUpdate SSH config the file with one line:
Code: Select all
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_configand restart SSH server
Code: Select all
service sshd restartNow you should be able to connect using remote root.
Option two:
Switch privileges for root access:
Code: Select all
su - rootOpen config file:
Code: Select all
nano /etc/ssh/sshd_configsearch for line:
PermitRootLogin without-password
or
#PermitRootLogin without-password
Change line to:
Code: Select all
PermitRootLogin yesExit nano and restart SSH server
Code: Select all
service sshd restart