IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 开发工具 -> gitee仓库连接被拒绝问题解决方案(Permission denied)send_pubkey_test: no mutual signature algorithm -> 正文阅读

[开发工具]gitee仓库连接被拒绝问题解决方案(Permission denied)send_pubkey_test: no mutual signature algorithm

问题描述:

电脑新装git,连接gitee仓库,生成ssh密钥

ssh-keygen -t rsa -C "your_email@example.com"

测试连接,发现连接拒绝:git@gitee.com: Permission denied (publickey)
提示失败信息为:send_pubkey_test: no mutual signature algorithm

高版本OpenSSH没有启用ssh-rsa

ssh -vT git@gitee.com

OpenSSH_8.8p1, OpenSSL 1.1.1l 24 Aug 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to gitee.com [180.97.125.228] port 22.
debug1: Connection established.
debug1: identity file /c/Users/Eleven/.ssh/id_rsa type 0
debug1: identity file /c/Users/Eleven/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/Eleven/.ssh/id_dsa type -1
debug1: identity file /c/Users/Eleven/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/Eleven/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/Eleven/.ssh/id_xmss type -1
debug1: identity file /c/Users/Eleven/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.8
debug1: Remote protocol version 2.0, remote software version Basalt-3.0.4
debug1: compat_banner: no match: Basalt-3.0.4
debug1: Authenticating to gitee.com:22 as ‘git’
debug1: load_hostkeys: fopen /c/Users/Eleven/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:+ULzij2u99B9eWYFTw1Q4ErYG/aepHLbu96PAUCoV88
debug1: load_hostkeys: fopen /c/Users/Eleven/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host ‘gitee.com’ is known and matches the ED25519 host key.
debug1: Found key in /c/Users/Eleven/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /c/Users/Eleven/.ssh/id_rsa RSA SHA256:wLXN6hWihm5KFvbGwUbSeC+7atMLYyknqhk+1Rkru5c
debug1: Will attempt key: /c/Users/Eleven/.ssh/id_dsa
debug1: Will attempt key: /c/Users/Eleven/.ssh/id_ecdsa
debug1: Will attempt key: /c/Users/Eleven/.ssh/id_ecdsa_sk
debug1: Will attempt key: /c/Users/Eleven/.ssh/id_ed25519
debug1: Will attempt key: /c/Users/Eleven/.ssh/id_ed25519_sk
debug1: Will attempt key: /c/Users/Eleven/.ssh/id_xmss
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /c/Users/Eleven/.ssh/id_rsa RSA SHA256:wLXN6hWihm5KFvbGwUbSeC+7atMLYyknqhk+1Rkru5c
debug1: send_pubkey_test: no mutual signature algorithm
debug1: Trying private key: /c/Users/Eleven/.ssh/id_dsa
debug1: Trying private key: /c/Users/Eleven/.ssh/id_ecdsa
debug1: Trying private key: /c/Users/Eleven/.ssh/id_ecdsa_sk
debug1: Trying private key: /c/Users/Eleven/.ssh/id_ed25519
debug1: Trying private key: /c/Users/Eleven/.ssh/id_ed25519_sk
debug1: Trying private key: /c/Users/Eleven/.ssh/id_xmss
debug1: No more authentication methods to try.
git@gitee.com: Permission denied (publickey).

解决方案:

1、添加 PubkeyAcceptedKeyTypes +ssh-rsa 配置即可
2、更换秘钥生成算法,使用 ed25519 算法生成
ssh-keygen -t ed25519 -C “your email”
3、降低 OpenSSH版本

参考:
无法将代码推送到gitee仓库故障处理(no mutual signature algorithm)
SSH-RSA key rejected with message “no mutual signature algorithm”

  开发工具 最新文章
Postman接口测试之Mock快速入门
ASCII码空格替换查表_最全ASCII码对照表0-2
如何使用 ssh 建立 socks 代理
Typora配合PicGo阿里云图床配置
SoapUI、Jmeter、Postman三种接口测试工具的
github用相对路径显示图片_GitHub 中 readm
Windows编译g2o及其g2o viewer
解决jupyter notebook无法连接/ jupyter连接
Git恢复到之前版本
VScode常用快捷键
上一篇文章      下一篇文章      查看所有文章
加:2021-10-29 13:15:51  更:2021-10-29 13:16:01 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年12日历 -2024/12/23 18:15:41-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码
数据统计