Cant Connect SSH Access on OPNSense Server

Started by pr3p, February 01, 2017, 04:45:46 AM

Previous topic - Next topic
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.



Note: its accessible via web gui



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

Quote from: 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

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

http://prntscr.com/e3o64q

on administrator config.

http://prntscr.com/e3o6nv

Can you look under System -> Diagnostics and search for sshd in System Activity?

Bart...

Quote from: bartjsmit on February 02, 2017, 07:20:07 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


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...

Quote from: 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...

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.

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...

Quote from: 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...

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

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

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...

Quote from: 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


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.

Just to be sure, unchecking the setting "Password protect the console menu" does not allow you to see the root menu *without* login?