字體:  

如何在 ubuntu 下產生 ssh key

kkman 發表於: 2013-12-23 17:27 來源: ADJ網路控股集團


如果要在 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

這樣就搞定啦~~