Allow root user ssh remote login under Ubuntu

Source: Internet
Author: User
Tags openssh server ssh secure shell ssh server
SSH server, you can access the remote server via SSH protocol instead of Telnet and FTP. However, Ubuntu defaults to not enable root users and does not allow root login. So you need to enable the root user first

Enable root User: sudo passwd root//Change password is enabled.

To install OpenSSH server:

  1. Installing OpenSSH server using the APT command
    $ sudo apt-get install Openssh-server

  2. Can be configured for OpenSSH server
    $ sudo vi/etc/ssh/sshd_config
    Find Permitrootlogin No Line and change to permitrootlogin Yes

  3. Restart OpenSSH server
    $ sudo service ssh restart

  4. If the client is Ubuntu, the SSH client is already installed and can connect to the remote server with the following command.
    $ SSH IP
    If it is a Windows system, you can connect remotely using SSH software such as SSH Secure shell.
    [c:\~]$ ssh [email protected]

Allow root user ssh remote login under Ubuntu

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: 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.