使用SSH方式操作GitHub

生成 SSH key

1
ssh-keygen -t ed25519 -C "[email protected]"

拷贝 SSH key

1
vim ~/.ssh/id_ed25519.pub

直接拷贝秘钥字符串

然后打开 GitHub,Settings-> SSH and GPG keys,点击 New SSH key

image-20220417103459842

然后对包起个秘钥名字,把秘钥字符串粘贴到秘钥框内,点击 Add SSH key 提交即可。

image-20220417103641656

接下来就能用 SSH 的方式操作 GitHub 了。

作者

Terwer

发布于

2022-04-17

更新于

2023-08-27

许可协议

评论