Linux下实现两台机器免密登录

背景:性能测试过程中,需要多台机器之间免密码登录 组网:A—B 1、先登录A机器,切换到root用户· 2、在A机器执行ssh-keygen -t rsa 命令,生成密钥文件,图中箭头一直回车就好 3、查看秘钥cd .ssh id_rsa为私钥,id_rsa.pub为公钥 4、在A机器执行ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected], 将公钥
相关文章
相关标签/搜索