Hello,
I have a synchronization task between a client and my FreeNAS 9.10-STABLE machine that runs unison over ssh. The comparison takes about 20 minutes, which would cause ssh to timeout with the default settings. In a previous version of FreeNAS, adding "ClientAliveCountMax 100" to the SSH advanced settings in the GUI fixed the issue. With a recent update, the issue has reappeared. There was formerly a bug where the SSH advanced settings were not being applied:
https://bugs.freenas.org/issues/5989
I used to be able to work around this by adding that line to /etc/ssh/sshd_config, then running "service sshd restart" after every reboot. Now, that doesn't work, giving the error:
Cannot 'restart' sshd. Set sshd_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'.
Has the implementation of ssh server changed? Does anyone know how to manually change the ssh settings?
Here are some older threads on this topic from former versions:
https://forums.freenas.org/index.php?threads/changing-a-line-in-sshd_config.23258/
http://forums.freenas.org/index.php?threads/sshd_config-tweaking.10428/#post-46828
I have a synchronization task between a client and my FreeNAS 9.10-STABLE machine that runs unison over ssh. The comparison takes about 20 minutes, which would cause ssh to timeout with the default settings. In a previous version of FreeNAS, adding "ClientAliveCountMax 100" to the SSH advanced settings in the GUI fixed the issue. With a recent update, the issue has reappeared. There was formerly a bug where the SSH advanced settings were not being applied:
https://bugs.freenas.org/issues/5989
I used to be able to work around this by adding that line to /etc/ssh/sshd_config, then running "service sshd restart" after every reboot. Now, that doesn't work, giving the error:
Cannot 'restart' sshd. Set sshd_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'.
Has the implementation of ssh server changed? Does anyone know how to manually change the ssh settings?
Here are some older threads on this topic from former versions:
https://forums.freenas.org/index.php?threads/changing-a-line-in-sshd_config.23258/
http://forums.freenas.org/index.php?threads/sshd_config-tweaking.10428/#post-46828