Ubuntu set root user ssh login

Source: Internet
Author: User
Tags ssh secure shell

In the use of the virtual machine process, because often to switch to Win7 debugging, so more trouble. So recently tried to use SSH Secure Shell client login virtual machine under win, in order to avoid repeated su switch to root, so I want to log in as root user.

1. First win7 install SSH Secure Shell Client,ubuntu also use Apt-get to install Openssh-server.

2. Restart the SSH service by changing Permitrootlogin No to Yes in/etc/ssh/sshd_confg.

3. The most important point is that the Ubuntu superuser root user is disabled, which is why we log on as a normal user, and there is no root option for switch user.

You must use the command to start root. Input: sudo passwd. Then enter the password to start root.

At this point, if you ping the virtual machine, you can normally SSH landing to Ubuntu. This allows Ubuntu to be operated directly through SSH under Win7 without the need for frequent switching between virtual machines and Win7.

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.