mutual ssh access without a password

mutual ssh access without a password

 

    Proceed as follows:

    Example: A machine from accessing machine B without a password.

    A: implementation of the above

    #ssh-keygen -t rsa

    Generates two files: /root/.ssh/id_rsa.pub public and /root/.ssh/id_rsa

    Private key.

    #chmod 755 /root/.ssh/

    #scp /root/.ssh/id_rsa.pub B:/root/.ssh/authorized_keys

    A machine then you can not have a password to access B.

Reproduced in: https: //www.cnblogs.com/licheng/archive/2010/12/29/1920917.html

Guess you like

Origin blog.csdn.net/weixin_33831196/article/details/93801097