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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章