Github 设置 SSH Key
作者:
夙小叶 | 来源:发表于
2020-01-17 09:48 被阅读0次
![](https://img.haomeiwen.com/i11192383/e3269f3ab788b929.jpg)
ID=78184222
ssh-keygen -t rsa -C "your email"
# 选择存放目录以及密钥文件名
Enter file in which to save the key (/home/username/.ssh/id_rsa): /home/username/.ssh/id_rsa_github
# 使用密钥时是否密码验证,空为直接使用
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
# .pub 后缀为公钥
cat ~/.ssh/id_rsa_github.pub
# 复制输出内容到 settings --> SSH and GPG keys --> New SSH key
# 验证 Key
ssh -T git@github.com
# Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
# Hi Your Github Username! You've successfully authenticated, but GitHub does not provide shell access.
本文标题:Github 设置 SSH Key
本文链接:https://www.haomeiwen.com/subject/ffhczctx.html
网友评论