OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: LiorY on May 27, 2024, 10:25:43 AM

Title: Unable to connect via SSH
Post by: LiorY on May 27, 2024, 10:25:43 AM
The only problem I have is when I want to ssh into my server I cant do it even tho I enabled everything I need in the web.
Only when I delete inside the config.xml the interfaces inside the /system/ssh I succeed to connect.
Any ideas why and what I need to do?
Title: Re: Unable to connect via SSH
Post by: Patrick M. Hausen on May 27, 2024, 10:52:42 AM
Leave the Interfaces setting at "All (recommended)". The word "recommended" is there for a reason.
Title: Re: Unable to connect via SSH
Post by: LiorY on May 27, 2024, 11:04:12 AM
I dont see anything in my interfaces that says All recommended as you said.
Title: Re: Unable to connect via SSH
Post by: Patrick M. Hausen on May 27, 2024, 11:10:04 AM
System > Settings > Administration

I had read from your initial post that you changed this setting. Don't.
Title: Re: Unable to connect via SSH
Post by: LiorY on May 27, 2024, 12:36:36 PM
Quote from: Patrick M. Hausen on May 27, 2024, 11:10:04 AM
System > Settings > Administration

I had read from your initial post that you changed this setting. Don't.

Didnt touched it
Title: Re: Unable to connect via SSH
Post by: Patrick M. Hausen on May 27, 2024, 12:38:29 PM
Then please describe in more detail what you mean by this:
QuoteOnl when I delete inside the config.xml the interfaces inside the /system/ssh I succeed to connect.
Title: Re: Unable to connect via SSH
Post by: LiorY on May 27, 2024, 12:49:22 PM
Quote from: Patrick M. Hausen on May 27, 2024, 12:38:29 PM
Then please describe in more detail what you mean by this:
QuoteOnl when I delete inside the config.xml the interfaces inside the /system/ssh I succeed to connect.

Okay inside the config.xml , which is /conf/config.xml obviously, when you start a machine its automatically adds you interface inside the section of ssh which inside of it you have interfaces.
When I manually remove the section of the interfaces inside the ssh section I get the connection I desire.
Title: Re: Unable to connect via SSH
Post by: Patrick M. Hausen on May 27, 2024, 01:01:53 PM
Could you post

- the XML in question and what exactly you remove
- the output of 'netstat -na | grep 22'
- the output of ' ifconfig -a'

?
Title: Re: Unable to connect via SSH
Post by: LiorY on May 27, 2024, 03:58:41 PM
Never mind managed to fix it  8)
Thanks anyways!
Title: Re: Unable to connect via SSH
Post by: Patrick M. Hausen on May 27, 2024, 04:11:08 PM
And the fix was ...?