Ubuntu Open allows root user to log in remotely

Source: Internet
Author: User
Tags openssh server ssh server

SSH server, you can access the remote server through the SSH protocol instead of Telnet and FTP. However, Ubuntu by default does not enable root and does not allow root remote logins. So you need to enable the root user first

1. Enable root User: sudo passwd root//password is enabled after it has been modified.

2. Install OpenSSH server:

Install OpenSSH server with apt command

$ sudo apt-get install Openssh-server

3. Configure OpenSSH Server

$ sudo vi/etc/ssh/sshd_config

Find Permitrootlogin no row, change to permitrootlogin Yes

4, restart OpenSSH server

$ sudo service ssh restart

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.