#创建ssh密钥命令
ssh-keygen -t rsa -b 4096 -C "[email protected]"
#询问路径,直接回车就行!不要改!免得后面麻烦!
Enter file in which to save the key (/Users/ieras/.ssh/id_rsa): [Press enter]
#询问密码和重复密码(依然推荐留空即可!同样免得后面麻烦)
Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]
#后面会打印一些类似下面的信息
Your identification has been saved in /Users/ieras/.ssh/id_rsa.
Your public key has been saved in /Users/ieras/.ssh/id_rsa.pub. The key fingerprint is: 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db [email protected]