ubuntu allow remote root login

Prior to say, how to set the root user login, but the use of tools such as operating Xshell Ubuntu, no user is logged in, the reason is very simple, there is no permission to open root login.

1. Check the ssh service is turned on

Use the following command to see whether to open

ps -e | grep ssh

2. Install the ssh service

Use the following command to install:

apt-get install ssh

3. Start ssh

Start with the following command: two of the following can be.

/etc/init.d/ssh start
service ssh start

 

4. Modify configuration information

Configuration file to / etc / ssh / sshd_config (Note that not ssh_config), find PermitRootLogin without-password, modify the PermitRootLogin yes

5. Restart ssh

Reboot command: The following two can be.

/etc/init.d/ssh restart
service ssh restart

 

After the restart can log root operations using Xshell.

 

Guess you like

Origin www.cnblogs.com/Yatces/p/11226077.html