代码拉取完成,页面将自动刷新
最近两个星期开始,突然ssh出现permission denied,无法clone、无法pull、无法push,重新生成了新的pub key也不行。
同样的pub key放在github或者其它地方都能用。
暂时只能使用https
刚发现了奇怪的地方,ssh到另一台机后,通过ssh-agent却能clone。
又尝试了在另一个环境使用,却没问题。
我是在ArchLinux下使用出现的问题。
git clone https://gitee.com/qwIvan/my-repo.git
期望恢复ssh
debug1: send_pubkey_test: no mutual signature algorithm
debug1: Trying private key: /home/ivan/.ssh/id_dsa
debug1: Trying private key: /home/ivan/.ssh/id_ecdsa
debug1: Trying private key: /home/ivan/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/ivan/.ssh/id_ed25519
debug1: Trying private key: /home/ivan/.ssh/id_ed25519_sk
debug1: Trying private key: /home/ivan/.ssh/id_xmss
debug1: No more authentication methods to try.
git@gitee.com: Permission denied (publickey).
发现有人遇到一样的问题了:
https://zhuanlan.zhihu.com/p/419745598
#I35AYM:Permission denied (publickey).
#I2RWXZ:SSH-RSA key rejected with message "no mutual signature algorithm"