Ubuntu17 root SSH

Source: Internet
Author: User

Ubuntu provides OpenSSH (OpenBSD Secure Shell) in it universe repositories, which is a suite of security-related network- Level utilities based on the SSH protocol.

1. To install it, open Terminal (ctrl+alt+t) or log in Ubuntu server and Run command:

sudo apt-get install Openssh-server

2. After this, you should has the SSH service enabled in your system, and you may check the IT status by running command:

sudo service SSH status

3. Some settings (e.g., the listening port, and root login permission) by editing the configuration file VI a command:

sudo nano/etc/ssh/sshd_config

On Ubuntu desktop, gedit instead of nano : Add the command in file

Permitrootlogin Yes Strictmodes Yes

Finally apply the changes by restarting or reloading SSH:

sudo service ssh restart


The above content is completely pirated from:


Here solemnly say, piracy to steal a full set, hahaha ~ ~ ~

Because you are not accustomed to using non-root users, enable the root account method directly:

1. Change the root password:

sudo passwd root

Enter the root user password two times

2. Create/etc/lightdm/lightdm.conf


Enter the content:


3. Restart the system

4, log on to the desktop with root, will pop up read/root/.profile error: Mesg:ttyname failed: improper operation of the device IOCTL information, the solution:

Add MESG N in the/root/.profile file

Replace with tty-s && mesg n

5, restart.

Reference article:


Ubuntu17 root SSH

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.