OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: packetsaylut on September 05, 2022, 02:43:25 AM

Title: unable to access web GUI and SSH is also broken
Post by: packetsaylut on September 05, 2022, 02:43:25 AM
The web sessions just hang and time out. Here's a print of the ssh attempt:


mypc:~$ ssh -l root 192.168.1.1
kex_exchange_identification: Connection closed by remote host
Connection closed by 192.168.1.1 port 22

I haven't logged in in a couple of months so I'm not sure if I performed an update on my last login or this just spontaneously happened.

I still have access to the console if anyone would like to walk me through troubleshooting the root cause and hopefully fixing it. 

Title: Re: unable to access web GUI and SSH is also broken
Post by: cookiemonster on September 05, 2022, 11:02:41 AM
Logging in as root. Not what I'd advise but you know what you're doing.
If you can get to the console, there option 3 is to reset the root password. It might be the easiest thing to do for now to at least be able to ssh in and troubleshoot.
Title: Re: unable to access web GUI and SSH is also broken
Post by: packetsaylut on September 05, 2022, 06:55:18 PM
Thanks cookie.

I think this is related to openssl/certificates I can login via console just fine but am unable to SSH (error in earlier post) and the web console does not load. A directly connected keyboard/monitor or use of the serial is my only option.

I'm not much of a *nix sysadmin so am not sure how to troubleshoot it. Generating a new self-signed certificate might be helpful but I'm not having much luck figuring it out.
Title: Re: unable to access web GUI and SSH is also broken
Post by: cookiemonster on September 06, 2022, 01:01:11 PM
Ah, I see. It seems you setup ssh keys in the past. Now for some reason I guess you are attempting to log in with them.
You could inititate a verbose output to see if it gives an indication:
mypc:~$ ssh -vvvv -l root 192.168.1.1

Self certs are not going to help here as you can't login to opn, unless I misread that.