Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] Problem logging in via SSH as non-root user
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Problem logging in via SSH as non-root user (Read 7106 times)
HrvojeS
Newbie
Posts: 16
Karma: 3
[SOLVED] Problem logging in via SSH as non-root user
«
on:
November 05, 2015, 12:31:59 am »
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
«
Last Edit: November 05, 2015, 01:51:52 am by HrvAtMyPlace
»
Logged
HrvojeS
Newbie
Posts: 16
Karma: 3
Re: Problem logging in via SSH as non-root user
«
Reply #1 on:
November 05, 2015, 01:26:04 am »
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
Logged
heynow
Newbie
Posts: 1
Karma: 1
Re: Problem logging in via SSH as non-root user
«
Reply #2 on:
November 05, 2015, 01:31:26 am »
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.
Logged
HrvojeS
Newbie
Posts: 16
Karma: 3
Re: [SOLVED] Problem logging in via SSH as non-root user
«
Reply #3 on:
November 05, 2015, 01:53:33 am »
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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] Problem logging in via SSH as non-root user