Root cannot ssh login under Ubuntu Server 14.04

#vim /etc/ssh/sshd_config

# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password #Find here, comment it
PermitRootLogin yes #Change to yes and restart ssh
StrictModes yes

 #service ssh restart



or

/etc/init.d/ssh restart

 

Get root privileges

method one:

1. set a password for root:   sudo passwd root

2. using command to get root role: su

3. enter the root's password set in step 1

 Method Two:

1. login ubuntu with customer account

2. run command: sudo su

3. enter customer account's password

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327027656&siteId=291194637