Linux remote login ssh password free

  
        First, the scene The company just got a few Linux, now you can remotely ssh password-free login between the hosts. Second, the principle is very simple, use ssh-keygen to generate private and public keys on host A, copy the generated public key to the remote machine host B, you can use the ssh command to log in to another machine host without password B. Steps Host A: 1. Generate public and private key files id_rsa and id_rsa.pub (Knock 3 and press Enter) [root@bogon ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has Been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 67:da:0d:79:e0:d6:2b:cd:7d:22:af:51:7e:9c:75:fe root @bogon The key's randomart image is: +--[ RSA 2048]----+
Copyright © Windows knowledge All Rights Reserved