三步配置SSH无密码访问

三步配置SSH无密码访问

step1 ssh-keygen -t rsa

输完命令后一路回车到天涯

step 2 ssh-add ~/.ssh/id_rsa

不要问为啥。你懂

其实也可以不用,主要是为了避免出现“Agent admitted failure to sign using the key”的情况

step 3 ssh-copy-id -i ~/.ssh/id_rsa.pub root@other_node

完事了

发布了24 篇原创文章 · 获赞 3 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/saeba5566/article/details/104843429