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