Crazy Noobs wanna know...

Status
Not open for further replies.

Montel Bahn

Dabbler
Joined
Oct 12, 2015
Messages
40
Is there any succinct way to explain why sshd runs when the ssh service is turned off?
Is this as expected?.. the services on-off settings DON'T actually control the daemons?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Can you still ssh into the server when it's turned off in the gui.
 

Montel Bahn

Dabbler
Joined
Oct 12, 2015
Messages
40
No it says ...blah blah connection refused
...But my point is ...it is responding!
You would think sshd would be not 'running' and there would be no response, same as when I pull the Cat5 out of router.
Is this information leakage normal? Seems kinda silly....
cat /etc/rc.conf|grep -i ssh
sshd_enable="Yes"

Just cause i'm paranoid doesn't mean the Five eyes panopticon isn't trying to bootstrap!
HAhA. Reagan was my hero.
 
Last edited:
D

dlavigne

Guest
Which build version (from System -> Information)? Also, post the output of sockstat when the SSH service is showing as OFF in the GUI.
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
Which build version (from System -> Information)? Also, post the output of sockstat when the SSH service is showing as OFF in the GUI.

Just tried this on FreeNAS-9.3-STABLE-201512121950:

With SSH On:
upload_2016-2-13_9-30-24.png


With SSH Off:
upload_2016-2-13_9-30-58.png


With SSH Off and Trying to Access via Putty:
upload_2016-2-13_9-33-29.png


Not sure if this is an issue of not, because I see varying results "Network Error: Connection Refused" and "Network Error: Connection Timed Out" on other Windows machines. However, I am pretty sure that is due to a Firewall on these Windows Machines (just haven't validated that).
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Looks like when sshd is off its doesn't have a listening socket so it's not possible to make a connection.
 

Montel Bahn

Dabbler
Joined
Oct 12, 2015
Messages
40
Sorry if that was alarmist,

I had a terminal open, so as per freenas notifier in bottom console, it was waiting on that PID. I suppose this is normal (not closing the connection, even though the Services slider was turned OFF). I added my version to my Signature(9.3p28). sockstat confirmed this also. The Guide is also very clear(no mention of process or daemons). This was on LAN of course, so I gather the ...blah blah connection refused makes sense.

cat /etc/rc.conf|grep -i ssh
Even with service slider set to off, gives
sshd_enable="Yes"

...I guess I shouldn't assume that was the control mechanism. This noob obviously has to go read much more of that wonderful documentation that FreeBSD and FreeNAS are famous for (Thanks a bunch DL). Please tag this Solved or something so as not to waste members' time.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
It is interesting that the process didn't die. I would be curious to know the rational behind that decision. You should keep digging until you find a solid answer.
 

Montel Bahn

Dabbler
Joined
Oct 12, 2015
Messages
40
How does the horrible webgui console open a session?
If I understand your question...The GUI 'Shell' (which we never forget to close when Turning services ON or OFF, haha) is NOT using SSH as far as I can see. I had another Terminal open like a bozo. Now let me go hide please.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
This question has popped up before, but I can't seem to remember what the reasoning was. I do remember it was convincing.
 
Status
Not open for further replies.
Top