9. How to make Ubuntu ssh password-free login

Source: Internet
Author: User
Tags ssh server

Ubuntu has an SSH client installed by default, and you need to install SSH server:

sudo apt-get install Openssh-server

After installation, you can use the following command to log on to the machine:

SSH localhost

At this point, you will be prompted with the following (SSH first login hint), enter Yes. Then follow the prompts to enter the password Hadoop, so it landed on the machine.

But this login is required to enter the password every time, we need to configure SSH without password login more convenient.

First exit the SSH just now, go back to our original terminal window, then use Ssh-keygen to generate the key and add the key to the authorization:

exit                           # quit SSH localhost  ~/.ssh/                     # If you do not have the directory, first ssh localhost  ssh-keygen-t RSA              # will be prompted, press ENTER to be able to  cat. /id_rsa.pub >>./authorized_keys  # Join license  

At this point ssh localhost , the command, without entering the password can be directly logged in

9. How to make Ubuntu ssh password-free login

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.