我的pfsense 版本 1.2.3,当我用Ubuntu 21.04 命令 ssh [email protected] (这里的admin换成你pfsense的用户名,xx.xx.xx.xx指pfsense服务器的IP地址)
提示:Unable to negotiate with xx.xx.xx.xx port 22: no matching host key type found. Their offer: ssh-dss
错误分析:这个错误提示表明你的 SSH 客户端和 pfSense 服务器之间的密钥类型不匹配。pfSense 可能只支持较旧的 DSS 密钥,而现代的 SSH 客户端通常禁用了这种密钥类型。
解决方案:ssh -o HostKeyAlgorithms=+ssh-dss [email protected]
这个方法的前提是你pfsense服务器打开了SSH服务,如果没有开启,就需要打开服务才能使用SSH连接:
确保启用 SSH
在 pfSense 上启用 SSH 访问:
- 登录到 pfSense 的 Web GUI。
- 转到 System > Advanced。
- 在 Admin Access 标签下,找到 Secure Shell 部分。
- 勾选 Enable Secure Shell 选项。
- 点击 Save 保存设置。