Odd SSH login issue
-
Good morning,
When trying to SSH into our PF sense box running on a Netgate APU running 2.2.2-RELEASE (amd64) we get some weird behavior.
We can successfully open the login dialog in our command window. However, when we enter a user name (either admin or root) and hit enter the server unexpectedly closes the connection. No matter what we do, we cannot get past this point so cannot SSH into the box.
We have checked the webgui and made sure that SSH access is allowed, we are set to use passwords and not keys at this time.
As stated above we can get into the webgui and the box is working in all other regards.
Not sure if related, but when we try to get to the console menu through the serial connection, we fail there as well. All we get are the same four lines talking about freebsd at about 45 second intervals.
Any insight someone can give would be much appreciated.
-
If you want help with this, you'll want to say what the error message was. Did you check the system logs, free disk space, etc?
-
I had indeed checked the logs before posting, went back and checked again and found this that was not there before. (checked through web gui)
May 7 13:56:08 sshd[3262]: in openpam_check_desc_owner_perms(): /etc/pam.d/sshd: insecure ownership or permissions
May 7 13:56:08 sshd[3262]: in openpam_check_desc_owner_perms(): /etc/pam.d/sshd: insecure ownership or permissions
May 7 13:56:08 sshd[3262]: fatal: PAM: initialisation failed
May 7 13:56:08 sshd[3262]: fatal: PAM: initialisation failed -
Was this an upgrade? I have heard of permissions problems after upgrading. I would save the config, burn a fresh sd card, and restore.
-
Indeed it was. I will definitely do that. Thanks for your feedback!