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

Create the authorized_keys on client 
ssh-keygen -t rsa

Copy the public key to the hostAdd public key info into authorized_keys file (On the host)
cat id_rsa.pub >> /home/[user]/.ssh/authorized_keysLog in ssh without known-host verification
ssh user@ip -o UserKnownHostsFile=/dev/Null -o StrictHostKeyChecking=no
发布了26 篇原创文章 · 获赞 5 · 访问量 2万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章