# 检查本机是否已经存在ssh公钥
$ cd ~/.ssh
# 检查本机是否已经存在ssh公钥
$ cd ~/.ssh
# 创建新的SSH密钥对
$ ssh-keygen -t rsa -C "your_email@example.com"
Enter passphrase (empty for no passphrase): [输入密码]
Enter same passphrase again: [再次输入密码]
$ ssh -T git@github.com
# 检查本机是否已经存在ssh公钥
$ cd ~/.ssh
# 检查本机是否已经存在ssh公钥
$ cd ~/.ssh
# 创建新的SSH密钥对
$ ssh-keygen -t rsa -C "your_email@example.com"
Enter passphrase (empty for no passphrase): [输入密码]
Enter same passphrase again: [再次输入密码]
$ ssh -T git@github.com