SSH session key (证书认证方式SSH登录配置)

来源:互联网 发布:光盘刻录软件哪个好 编辑:程序博客网 时间:2024/05/01 21:42
  • Create the authorized_keys on client 
    ssh-keygen -t rsa

  • Copy the public key to the host
  • Add public key info into authorized_keys file (On the host)
    cat id_rsa.pub >> /home/[user]/.ssh/authorized_keys
  • Log in ssh without known-host verification
    ssh user@ip -o UserKnownHostsFile=/dev/Null -o StrictHostKeyChecking=no