OPNsense Forum

English Forums => 26.1, 26,4 Series => Topic started by: nme34 on May 16, 2026, 10:28:08 PM

Title: SSH Connection refused
Post by: nme34 on May 16, 2026, 10:28:08 PM
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?
Title: Re: SSH Connection refused
Post by: meyergru on May 16, 2026, 10:34:05 PM
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.