在 Linux 上:

ssh-keygen -t rsa -C "xxx@xxx.com"

随后

cat ~/.ssh/id_rsa.pub

复制到 github -> Settings -> SSH and GPG keys -> New SSH

随后验证:

ssh -T git@github.com

预期输出:

Hi xxx! You've successfully authenticated, but GitHub does not provide shell access.
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐