连接始终使用“git”用户,所有连接(包括远程 URL 的连接)都必须以“git”用户身份进行。如果您尝试使用 GitHub 用户名进行连接,则会失败:

$ ssh -T GITHUB-USERNAME@github.com

Permission denied (publickey).

[1] Error: Permission denied (publickey) https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey?platform=linux

Logo

免费领 150 小时云算力,进群参与显卡、AI PC 幸运抽奖

更多推荐