跳转到内容
新建笔记

问题 ssh forlinx@192.168.11.68 Unable to negotiate with 192.16

问题

终端窗口
ssh forlinx@192.168.11.68
Unable to negotiate with 192.168.11.68 port 22: no matching host key type found. Their offer: ssh-rsa

解决方法: 方法1:

ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa forlinx@192.168.11.68

方法2:创建 SSH 配置文件(永久解决) 在 Windows 上创建或编辑 SSH 配置文件:

  1. 打开文件:C:\Users\28581\.ssh\config(如果不存在就创建)

  2. 添加以下内容:

Host 192.168.11.68
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

来源:CSDN 原文,首次发布于 2026-01-29。