生成公钥和私钥
要为 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