生成公鑰和私鑰
要為 SSH 客戶端生成金鑰:
ssh-keygen [-t rsa | rsa1 | dsa ] [-C <comment>] [-b bits]
例如:
ssh-keygen -t rsa -b 4096 - C myemail@email.com
私有的~/.ssh/id_rsa
和公鑰的~/.ssh/id_rsa.pub
預設位置。
有關詳細資訊,請訪問 man.openbsd.org
要為 SSH 客戶端生成金鑰:
ssh-keygen [-t rsa | rsa1 | dsa ] [-C <comment>] [-b bits]
例如:
ssh-keygen -t rsa -b 4096 - C myemail@email.com
私有的~/.ssh/id_rsa
和公鑰的~/.ssh/id_rsa.pub
預設位置。
有關詳細資訊,請訪問 man.openbsd.org