OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: andy.nl on March 17, 2017, 09:16:25 pm

Title: [SOLVED] ssh login
Post by: andy.nl on March 17, 2017, 09:16:25 pm
Hi folks,

this might be a stupid question:
I have tried too many times to login via ssh apparently with a wrong password.
As a consequence ssh seems to block any login attempt now.
Does anybody know how I can unblock this ?

Code: [Select]
Received disconnect from 192.168.1.1 port 22:2: Too many authentication failures
Connection to defiant-nw closed by remote host.

Thanks in advance,
Andy
Title: Re: ssh login blocked
Post by: fabian on March 17, 2017, 09:34:42 pm
Do you allow password login?
Do you allow root login?
Title: Re: ssh login blocked
Post by: andy.nl on March 17, 2017, 09:37:17 pm
password yes
root no
Title: Re: ssh login blocked
Post by: fabian on March 17, 2017, 09:50:42 pm
If root login is not allowed, your credentials will be rejected even if they are correct if you login as root. Other users also have to have the right privilege set to be allowed to log in.
Title: Re: ssh login blocked
Post by: andy.nl on March 17, 2017, 10:08:50 pm
thanks.
activated root login permission, but no change. #its still impossible to get a connection via ssh neither as root nor via other user login.
Ssh times out as the server doesn't respond apparently.

Title: Re: ssh login blocked
Post by: fabian on March 18, 2017, 11:19:16 am
Timeout can be a firewall issue (missing a pass rule or being blocked because of too many failed attempts).
Title: Re: ssh login blocked
Post by: andy.nl on March 18, 2017, 11:28:33 am
Since it was working in the past and I didn't change anything of th fw rules, I suspect it's the latter one. How can I unblock ssh login after too many failed attempts?

Title: Re: ssh login blocked
Post by: fabian on March 18, 2017, 12:19:35 pm
Should be in Firewall -> Diagnostics -> pf tables
Title: Re: ssh login blocked
Post by: andy.nl on March 18, 2017, 01:43:03 pm
Bingo that was it!
Issue solved  ;D

Thanks fabian! 8)