鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

Configuring Password-Free Login

Enable ceph1 and client1 to access all server and client nodes (including ceph1 and client1) without a password.

  1. Generate a public key on ceph1 and deliver it to other server and client nodes.
    1
    2
    3
    ssh-keygen -t rsa
    for i in {1..3}; do ssh-copy-id ceph$i; done
    for i in {1..3}; do ssh-copy-id client$i; done
    

    After inputting the first command ssh-keygen -t rsa, press Enter to use the default configuration.

  2. Generate a public key on client1 and deliver it to each server node and client node.
    1
    2
    3
    ssh-keygen -t rsa
    for i in {1..3}; do ssh-copy-id ceph$i; done
    for i in {1..3}; do ssh-copy-id client$i; done
    

    After inputting the first command ssh-keygen -t rsa, press Enter to use the default configuration.