分享传递知识

如何使用SSH 连接pfsense 服务器

我的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连接:

pfsense1.2.3

确保启用 SSH

在 pfSense 上启用 SSH 访问:

  1. 登录到 pfSense 的 Web GUI。
  2. 转到 System > Advanced
  3. Admin Access 标签下,找到 Secure Shell 部分。
  4. 勾选 Enable Secure Shell 选项。
  5. 点击 Save 保存设置。

pfsense

赞(0) 打赏

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏