[email protected] .ssh $ pwd /home/atguigu/.ssh [email protected] .ssh $ ssh keygen t rsa Then knock ( Three ca...">

当前位置:网站首页>SSH keyless login

SSH keyless login

2022-07-19 13:34:00 The code family

(1) Generate public and private keys

[[email protected] .ssh]$ pwd

/home/atguigu/.ssh

[[email protected] .ssh]$ ssh-keygen -t rsa

Then knock ( Three carriage returns ), Two files will be generated id_rsa( Private key )、id_rsa.pub( Public key )

(2) Copy the public key to the target machine for password free login

[[email protected] .ssh]$ ssh-copy-id hadoop102

[[email protected] .ssh]$ ssh-copy-id hadoop103

[[email protected] .ssh]$ ssh-copy-id hadoop104

Be careful

Still need to be in hadoop103 On use atguigu Configure your account and log in to hadoop102hadoop103、hadoop104 The server On .

Still need to be in hadoop104 On use atguigu Configure your account and log in to hadoop102hadoop103、hadoop104 The server On .

Still need to be in hadoop102 On use root account number , Configure password free login to hadoop102hadoop103hadoop104;

原网站

版权声明
本文为[The code family]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/200/202207171813353892.html