Board logo

標題: [介紹] 如何在 ubuntu 下產生 ssh key [打印本頁]

作者: kkman    時間: 2013-12-23 17:27     標題: 如何在 ubuntu 下產生 ssh key

如果要在 ubuntu 底下產生 ssh key
可以這樣做~~

# ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.


上面的 passphrase 留空就可以了
產生的 public SSH key 會在 ~/.ssh/id_rsa.pub

這樣就搞定啦~~




歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) Powered by Discuz! 6.0.0