OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: CanadaGuy on September 06, 2023, 04:58:56 PM

Title: ssh login shell switched to /sbin/nologin
Post by: CanadaGuy on September 06, 2023, 04:58:56 PM
We had a power outage today and upon reboot the WebUI wasn't loading. I tried to SSH to restart the WebUI, but I was getting a keyboard-interactive prompt despite knowing the password was correct. After restarting opnsense, I could get back into the UI and noticed the result in the attached image. After returning it to /bin/sh for my user, I could login as usual.

Could this have happened during the 23.7 update? I rarely SSH in so it's possible it was due to an issue from a while ago. Anyone else have this problem?

Update: I just found this post https://forum.opnsense.org/index.php?topic=35415.msg171845
Title: Re: ssh login shell switched to /sbin/nologin
Post by: newsense on September 06, 2023, 06:12:36 PM
Did you run a health audit ? Filesystem clean on boot ?
Title: Re: ssh login shell switched to /sbin/nologin
Post by: CanadaGuy on September 06, 2023, 06:39:45 PM
health audit? is that an opnsense thing? I wasn't able to access as it is headless, and the reboot restored things. It was routing and reading the config just fine as all my subnets were doing what they were supposed to do.
Title: Re: ssh login shell switched to /sbin/nologin
Post by: franco on September 06, 2023, 09:29:01 PM
Let's discuss this here: https://forum.opnsense.org/index.php?topic=35415.0


Cheers,
Franco