[SOLVED] Problem logging in via SSH as non-root user

Started by HrvojeS, November 05, 2015, 12:31:59 AM

Previous topic - Next topic
November 05, 2015, 12:31:59 AM Last Edit: November 05, 2015, 01:51:52 AM by HrvAtMyPlace
Hello,

I've created a non-root account with same privileges as root account then disabled the root account. When I enabled Secure Shell Server with Permit password login option I'm still not able to log into OPNsense via SSH.

Image of my secure shell setting:


Image of users:


Image for SSH attempt:


I'm not sure if this is a bug or not. Thank you in advance for your help. Best regards,

Hrv

Hello,

I checked /etc/passwd and my non-root user has a "/sbin/nologin" shell. I would assume that user added via GUI with all privileges and SSH server enabled that my non-root user would have a proper shell set and be allowed a login.

Also, it seems that even though root is disabled it still has a shell of "/usr/local/etc/rc.initial". I would expect this to be disabled.

Can someone please confirm what is expected behaviour of user accounts set in GUI with respect to SSH access? Thank you in advance. Best regards,

Hrv

Go back to editing the user and add the shell access...Effective Privileges section -> Add User - "System - Shell account access" - then you should be good.

Hello heynow,

Thank you for this pointer. I missed this and assumed that adding it to admin group should have done it. I've added "User - System - Shell account access" to "admins" group which effectively did the trick. Thank you again for your help. I greatly appreciate your assistance.

Hrv