Linux ssh password-free logon tutorial and linuxssh password-free tutorial

Source: Internet
Author: User

Linux ssh password-free logon tutorial and linuxssh password-free tutorial

1. Prepare the two machines to ping each other.

2. sudo ufw disable Firewall

3. sudo apt-get install openssh-server // install ssh

4. On the other two hosts: ssh-keygen-t rsa, press enter to generate the ". ssh" folder in the root directory of the user.

Cd ~ /. Ssh:

5. modify some operations:

1. Modify the hostname under/etc (and the name after @, which takes effect after restart)

2. Modify the host to match the name with the Ip address. sudo vim/etc/hosts

Modify

Node3 192.168.192.136

Node2 192.168.192.135

3. HOST: sudo cat id_rsa.pub> authorized_keys

Sudo scp authorized_keys node2 :~ /. Ssh

Authorized_keys: stores the public key for remote password-free logon. This file records the public keys of multiple machines.

Id_rsa: generated private key file

Id_rsa.pub: generated public key file

Know_hosts: list of known host public keys

6. Solutions to some problems:

Smbus host controller not enabled // Problem

Vim/etc/modprobe. d/blacklist. conf // blacklist it

Blacklist i2c_piix4

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.