OPNsense Forum

English Forums => General Discussion => Topic started by: pr3p on February 01, 2017, 04:45:46 am

Title: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 01, 2017, 04:45:46 am
Hi Sirs, any help After updating the server and reboot via ssh i was not able to connect on the server via ssh anymore, with this error.

(http://image.prntscr.com/image/13451506d5f74024ad7ce02750883195.png)

Note: its accessible via web gui
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: Tripple_Delta on February 01, 2017, 04:41:56 pm
Is root allowed to login?
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 02, 2017, 08:40:32 am
Is root allowed to login?


yes (http://image.prntscr.com/image/dcde3f8ae0d84473844e80f286aee70a.png)
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: franco on February 02, 2017, 06:45:39 pm
Is this on a LAN, WAN or OPT? Is SSH running? If on WAN or OPT, is the firewall rule there to allow it? Port 22 is filled automatically, make sure there is no space in there (shouldn't matter, but we had a report once about a trailing space...).


Cheers,
Franco
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 02, 2017, 07:13:44 pm
Is this on a LAN, WAN or OPT? Is SSH running? If on WAN or OPT, is the firewall rule there to allow it? Port 22 is filled automatically, make sure there is no space in there (shouldn't matter, but we had a report once about a trailing space...).


Cheers,
Franco

Hi franco its on LAN i check firelwall rules and its correct

http://prntscr.com/e3o64q

on administrator config.

http://prntscr.com/e3o6nv
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: bartjsmit on February 02, 2017, 07:20:07 pm
Can you look under System -> Diagnostics and search for sshd in System Activity?

Bart...
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 02, 2017, 07:28:11 pm
Can you look under System -> Diagnostics and search for sshd in System Activity?

Bart...


i check the logs and i got this http://prntscr.com/e3ocv5
and on diagnostics http://prntscr.com/e3odxr

Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: bartjsmit on February 02, 2017, 09:25:22 pm
From the console, can you try option 8 for the shell and run

ssh localhost

to see if it is the daemon or the firewall?

Bart...
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 03, 2017, 02:20:07 am
From the console, can you try option 8 for the shell and run

ssh localhost

to see if it is the daemon or the firewall?

Bart...

i cant login also i try to login on console its stock on login area only when i entered user doesn't proceed to password.
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: bartjsmit on February 03, 2017, 08:28:25 am
That would indicate that the issue is with logins rather than with SSH.

Can you back up your configuration, do a fresh install and then restore it?

Bart...
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 03, 2017, 10:13:15 am
That would indicate that the issue is with logins rather than with SSH.

Can you back up your configuration, do a fresh install and then restore it?

Bart...

I cant i need the data on reports for netflow, i want to reset but i cant login thats the problem and thats why also why ssh can access due to update to 16.7.4
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: franco on February 03, 2017, 10:56:47 am
Which version are you on? opnsense_pam.so not installed makes me think your 17.1 upgrade went bad.

Go to System: Settings: Administration, unlock the console menu via option.

Go to the console, choose option 8, and type:

# opnsense-update -f
# /usr/local/etc/rc.reboot
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: bartjsmit on February 03, 2017, 12:00:00 pm
Also consider an external netflow collector to make sure your firewall is not a single point of failure. ManageEngine has a full featured application which I think is free for up to two interfaces. https://www.manageengine.com/products/netflow/download-free.html

Bart...
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 06, 2017, 02:15:21 am
Which version are you on? opnsense_pam.so not installed makes me think your 17.1 upgrade went bad.

Go to System: Settings: Administration, unlock the console menu via option.

Go to the console, choose option 8, and type:

# opnsense-update -f
# /usr/local/etc/rc.reboot


H ifranco yes i upgraded to 17.1 and upon reboot i cant login anymore even on console it was stock on login area when i input login as root and doesnt ask for password its just looping and looping on login.


I already enable console, still the same.
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: franco on February 06, 2017, 05:58:36 am
Just to be sure, unchecking the setting "Password protect the console menu" does not allow you to see the root menu *without* login?
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 06, 2017, 06:53:13 am
Just to be sure, unchecking the setting "Password protect the console menu" does not allow you to see the root menu *without* login?

Hi password protect is enable on console, this just happen when updating to 17.1.

(http://image.prntscr.com/image/8ec1ef91932d49b290de11aec857c210.png)

Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: franco on February 06, 2017, 07:05:23 am
Disable the option, hit save and you should be able to access the console?
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 06, 2017, 11:20:17 am
Just to be sure, unchecking the setting "Password protect the console menu" does not allow you to see the root menu *without* login?

I did i cant still acces or login on console. it show login but upon entering user: doesnt proceed to password its just on login login login
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 06, 2017, 02:35:57 pm
Just to be sure, unchecking the setting "Password protect the console menu" does not allow you to see the root menu *without* login?

I did franco but still looping on login area and cant proceed on password, its looping and keep asking user only only.
Title: Re: Cant Connect SSH Access on OPNSense Server
Post by: pr3p on February 06, 2017, 03:58:26 pm
I reinstall OPNSense with fresh 17.1 already thanks for the support.