Home  >  Q&A  >  body text

Please answer from experts who have studied Linux deeply. Why do you write the client's ssh public key in the authorized_keys file of the remote server so that no password is needed?

What kind of process is this?

PHPzPHPz2713 days ago608

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 13:26:11

    https://my.oschina.net/realfi...

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:26:11

    Ruan Yifeng’s article is very clear about SSH principles and applications (1): remote login

    There is such a paragraph in the article

    所谓"公钥登录",原理很简单,就是用户将自己的公钥储存在远程主机上。登录的时候,远程主机会向用户发送一段随机字符串,用户用自己的私钥加密后,再发回来。远程主机用事先储存的公钥进行解密,如果成功,就证明用户是可信的,直接允许登录shell,不再要求密码。

    reply
    0
  • Cancelreply