[Solved!] SSH Connection refused

Started by nme34, May 16, 2026, 10:28:08 PM

Previous topic - Next topic
May 16, 2026, 10:28:08 PM Last Edit: Today at 04:57:21 AM by nme34 Reason: Solved!
I have had OPNsense installed before on this PC I have now in the past and SSH worked fine. I tried the instructions on the OPNsense site and that did not work. Port 22 was refused.

I read this: https://www.derekseaman.com/2021/04/how-to-adding-ssh-keys-to-opnsense.html

and tried:
ssh -i id_rsa root@192.168.1.1

and received:
Warning: Identity file id_rsa not accessible: No such file or directory.
ssh: connect to host 192.168.1.1 port 22: Connection refused

The OPNsense install is new and default except for the above attempted setup.

Can someone point me in the right direction?

Well, obviously whatever id_rsa file you created is not accessible, but that is a pure client problem. Maybe the path is incorrect. You could always use password-based authentication instead.

Apart from that, port 22 on 192.168.1.1 cannot be reached, so either the IP is wrong, or SSH is not enabled or some firewall rule prevents you from accessing the SSH port.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 450 up, Bufferbloat A+

Today at 04:55:43 AM #2 Last Edit: Today at 04:58:00 AM by nme34
Quote from: meyergru on May 16, 2026, 10:34:05 PMWell, obviously whatever id_rsa file you created is not accessible, but that is a pure client problem. Maybe the path is incorrect. You could always use password-based authentication instead.

Apart from that, port 22 on 192.168.1.1 cannot be reached, so either the IP is wrong, or SSH is not enabled or some firewall rule prevents you from accessing the SSH port.

Thanks for the reply. I finally figured out that my PC VPN was the culprit. I checked the firewall and everything else. I then used a terminal through "split tunnel" (bypass the VPN) and it worked just like it used to. Thanks for the suggestions. I can look for those, too, if I have any more problems. Have a great day.