Navicat连接ssh报错 kex error : no match for method kex algos: server [diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1], c
昨天 23:30
字数 1356
阅读 10
如题,换了新电脑之后使用Naivat连接远程数据库报错如下,macOS系统版本、系统openSsh版本、Navicat版本都和原电脑一直的情况下仍旧报错
Navicat连接ssh报错 kex error : no match for method kex algos: server [diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1], client [ecdh-sha2-nistp256] (-1)
两种解决办法
方法一
修改 cat /etc/ssh/crypto.conf文件如下,注意 Ciphers、KexAlgorithms 注释掉的是原配置
➜ ~ cat /etc/ssh/crypto.conf
# Default algorithms favoring higher-performance FIPS algorithms
# in most cases.
#
# To configure these SSH algorithms, run the following command:
#
# sudo ln -fs crypto/apple.conf /etc/ssh/crypto.conf
#
# Ciphers ^aes128-gcm@openssh.com,aes256-gcm@openssh.com
Ciphers ^aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes256-ctr,aes128-ctr
# KexAlgorithms ^ecdh-sha2-nistp256
KexAlgorithms ^ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
MACs ^hmac-sha2-256-etm@openssh.com,hmac-sha2-256
很多人用这个方法解决了问题,但是我的Navicat客户端似乎有点任性,它不读取这个配置,所以这个方法对我没用,最终我使用了下面的方法解决问题
方法二
修改 ~/.ssh/config,增加如下配置
Host 123.123.123.123 # 你的服务器Ip
HostName 123.123.123.123 # 你的服务器Ip
KexAlgorithms +diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256
Ciphers +aes256-ctr,aes128-ctr
PubkeyAcceptedKeyTypes +ssh-rsa
虽然 Navicat 不读系统的 crypto.conf,但作为标准的 SSH 客户端,它在建立 SSH 连接时,普遍会去读取你用户家目录下的个人配置文件 ~/.ssh/config。
0人点赞>
0 条评论
排序方式
时间
投票
快来抢占一楼吧
请登录后发表评论
相关推荐
文章归档
2026-05
1 篇
2026-01
2 篇
2025-11
2 篇
2025-09
1 篇
2025-08
7 篇
展开剩余 75 条
2025-07
1 篇
2025-05
2 篇
2024-11
1 篇
2024-06
1 篇
2024-05
2 篇
2024-04
2 篇
2024-03
2 篇
2024-01
1 篇
2023-10
1 篇
2023-09
1 篇
2023-08
1 篇
2023-06
1 篇
2023-04
1 篇
2022-12
2 篇
2022-06
1 篇
2022-04
3 篇
2022-03
3 篇
2022-01
6 篇
2021-12
2 篇
2021-11
2 篇
2021-10
2 篇
2021-09
1 篇
2021-08
2 篇
2021-07
4 篇
2021-06
1 篇
2021-05
3 篇
2021-04
3 篇
2021-01
2 篇
2020-11
1 篇
2020-10
3 篇
2020-09
2 篇
2020-08
1 篇
2020-07
5 篇
2020-06
5 篇
2020-05
1 篇
2020-04
1 篇
2020-03
2 篇
2020-02
3 篇
2020-01
1 篇
2019-11
5 篇
2019-10
10 篇
2019-09
12 篇
2019-08
17 篇
2019-07
8 篇
2019-05
3 篇
2019-04
8 篇
2019-03
7 篇
2019-02
8 篇
2019-01
5 篇
2018-12
7 篇
2018-11
8 篇
2018-10
4 篇
2018-09
7 篇
2018-08
12 篇
2018-07
9 篇
2018-06
6 篇
2018-05
11 篇
2018-04
18 篇
2018-03
1 篇
2018-02
2 篇
2018-01
10 篇
2017-12
14 篇
2017-11
44 篇
2017-10
13 篇
2017-09
4 篇
2017-08
12 篇
2017-07
5 篇
2017-06
4 篇
2017-05
2 篇
2017-04
3 篇
2017-03
9 篇
2017-02
3 篇
2017-01
2 篇
2016-12
10 篇
2016-11
4 篇
最新文章
最受欢迎
01-21 16:24
01-21 11:29
25-11-06 18:49
25-11-01 00:39
13 评论
11 评论
10 评论