% ssh -vT git@github.com
OpenSSH_8.6p1, LibreSSL 2.8.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to github.com port 22.
debug1: Connection established.
这个ssh还真没有用过,不过 你提示的最后一行不是没有权限吗?
是不是git库对你没有权限? 试试你用过的库clone一下,不是命令的问题,就是代码库对你没权限了~
配置好公钥与私钥后,你拉代码的方式,是直接SSH 对应的代码仓库路径啊,不是整个 @github.com