OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Cant Connect SSH Access on OPNSense Server
« previous next »
  • Print
Pages: [1] 2

Author Topic: Cant Connect SSH Access on OPNSense Server  (Read 24051 times)

pr3p

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
    • View Profile
Cant Connect SSH Access on OPNSense Server
« 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.



Note: its accessible via web gui
Logged

Tripple_Delta

  • Jr. Member
  • **
  • Posts: 91
  • Karma: 3
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #1 on: February 01, 2017, 04:41:56 pm »
Is root allowed to login?
Logged

pr3p

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #2 on: February 02, 2017, 08:40:32 am »
Quote from: Tripple_Delta on February 01, 2017, 04:41:56 pm
Is root allowed to login?


yes
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #3 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
Logged

pr3p

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #4 on: February 02, 2017, 07:13:44 pm »
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
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #5 on: February 02, 2017, 07:20:07 pm »
Can you look under System -> Diagnostics and search for sshd in System Activity?

Bart...
Logged

pr3p

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #6 on: February 02, 2017, 07:28:11 pm »
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

Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #7 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...
Logged

pr3p

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #8 on: February 03, 2017, 02:20:07 am »
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.
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #9 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...
Logged

pr3p

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #10 on: February 03, 2017, 10:13:15 am »
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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #11 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
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #12 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...
Logged

pr3p

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #13 on: February 06, 2017, 02:15:21 am »
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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: Cant Connect SSH Access on OPNSense Server
« Reply #14 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?
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Cant Connect SSH Access on OPNSense Server
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2