Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
can no longer SSH
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: can no longer SSH (Read 2256 times)
jmmartj
Newbie
Posts: 13
Karma: 1
can no longer SSH
«
on:
October 12, 2023, 10:43:45 pm »
Hi all,
Is there a definitive document/steps, regarding SSH'nig into OPN? I have scoured online and have come up empty regarding any steps out there. Tried creating new user, new groups, logging in as admin/root, changing shells, certs, etc. It used to work just fine earlier this year. Any help would be highly appreciated. Thank you!
~jm
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: can no longer SSH
«
Reply #1 on:
October 12, 2023, 10:52:12 pm »
There is, the part of the documentation that says "Enable a secure shell service"
https://docs.opnsense.org/manual/settingsmenu.html
What happens when you attempt to ssh into it?
Logged
jmmartj
Newbie
Posts: 13
Karma: 1
Re: can no longer SSH
«
Reply #2 on:
October 12, 2023, 10:56:43 pm »
Definitely did that!
I get 'access denied'...
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: can no longer SSH
«
Reply #3 on:
October 12, 2023, 10:59:32 pm »
Ok, then the ssh server is enabled and answering back.
Then it could be wrong password. Is it for root?
Logged
jmmartj
Newbie
Posts: 13
Karma: 1
Re: can no longer SSH
«
Reply #4 on:
October 12, 2023, 11:06:35 pm »
Not root.
Usually would try just my 'admin' account.
As mentioned, tried to create a new account, but still no dice.
At least it's still functional/pingable at this time.
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: can no longer SSH
«
Reply #5 on:
October 12, 2023, 11:13:32 pm »
Check if the user's shell really exists. IIRC bash was removed from the standard OPNsense installation.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
jmmartj
Newbie
Posts: 13
Karma: 1
Re: can no longer SSH
«
Reply #6 on:
October 12, 2023, 11:21:01 pm »
I tried using 'csh' but no go, still 'access denied'
Attempted using putty with 'ssh admin@192.168.1.1' & only 'admin@192.168.1.1' for example.
When you say checking if the user's shell really exists, could you elaborate, please?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: can no longer SSH
«
Reply #7 on:
October 12, 2023, 11:29:58 pm »
system > users > Login shell
Logged
jmmartj
Newbie
Posts: 13
Karma: 1
Re: can no longer SSH
«
Reply #8 on:
October 12, 2023, 11:34:06 pm »
Went to (sorry for CAPS):
SYSTEM: ACCESS: USERS
admin user's Login shell is '/bin/csh'
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: can no longer SSH
«
Reply #9 on:
October 12, 2023, 11:36:19 pm »
that's where I meant
Could you try changing to another shell and try again?
Logged
jmmartj
Newbie
Posts: 13
Karma: 1
Re: can no longer SSH
«
Reply #10 on:
October 12, 2023, 11:49:44 pm »
Tried all four, but could not get it to work.
I'm wondering if it's something really basic..?
Tried admin@IP & ssh admin@IP, fyi.
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: can no longer SSH
«
Reply #11 on:
October 12, 2023, 11:54:51 pm »
Those are ways to get to the same thing, the ssh server, which is responding. Do you have another user for which ssh works ok?
Logged
jmmartj
Newbie
Posts: 13
Karma: 1
Re: can no longer SSH
«
Reply #12 on:
October 12, 2023, 11:57:30 pm »
The only other time I was able to get in, was with my admin account (non-root). I've tried root, but that did not work. I'm a bit perplexed!
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: can no longer SSH
«
Reply #13 on:
October 13, 2023, 12:00:43 am »
admin maps to the root account. If you can then try to navigate to /bin and verify the shells are there.
Logged
jmmartj
Newbie
Posts: 13
Karma: 1
Re: can no longer SSH
«
Reply #14 on:
October 13, 2023, 12:11:36 am »
I'm just plain stuck. :'(
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
can no longer SSH