Is it possible to restart the sshd service in command line ?

Status
Not open for further replies.

Zou

Dabbler
Joined
Jul 26, 2014
Messages
12
I'm in vacation and I try to activate the ssh tunneling in my FreeNas.

So I've uncomment the "AllowTcpForwarding yes" option to the sshd_config file but now I try restart the service to make the changes active. (I don't have access to the WebUI).

I've tested "service sshd restart" and I got this
Code:
....Zou # service sshd restart
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 79190.
Performing sanity check on sshd configuration.
Starting sshd.
but my ssh session was not closed (normally when I restart the sshd service in a remote server my ssh session is cut) and the tunneling still don't work.

I'm on Freenas 11.1-stable.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Any configuration changes followed by a restart only applies to new sessions, not existing sessions.
 

Zou

Dabbler
Joined
Jul 26, 2014
Messages
12
I log out and log in before testing the tunneling.

It seems "service sshd restart" is not restarting properly or it's not the good way to restart the service.
 
Status
Not open for further replies.
Top