linux 建立多台ssh信任

1. A机上运行:ssh-keygen -t rsassh

2. A机上运行:scp /root/.ssh/id_rsa.pub B:/root/.ssh/authorized_keyside

3. C机上运行:ssh-keygen -t rsait

4. C机上运行:scp /root/.ssh/id_rsa.pub root@IP:/root/.ssh/ IP (其中IP是B机的)class

5. 登陆到B机,进入/root/.ssh下登录

6. B机上运行:cat IP >> authorized_keys.rsa

至此,A,C机均可无需密码登陆到B机上了,其余的一样设置。密码

相关文章
相关标签/搜索