SSH won't start how to resolve?

Need SSH for TrueNAS replication to work from another truenas.

The following is from the error output
Jul 05 12:15:56systemd[1]: Starting ssh.service - OpenBSD Secure Shell server…
Jul 05 12:15:56 sshd[37208]: /etc/ssh/sshd_config line 46: Directive ‘Ciphers’ is not allowed within a Match block
Jul 05 12:15:56 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
Jul 05 12:15:56 systemd[1]: ssh.service: Failed with result ‘exit-code’.
Jul 05 12:15:56 systemd[1]: Failed to start ssh.service - OpenBSD Secure Shell server.

I have the following in my SSH service auxillary parameters which i think i have never touched:
Ciphers chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com

So remove it, which will likely fix your problem.

2 Likes

yeah turned out to be a dumb question as i noticed what i needed to do as i was pasting the response, but too many times ive backed out of asking for help right when i thought i knew what to do next but then it didn’t work.

I removed to ciphers option and it worked after that. initially when i got the issue i didn’t remember ever editing those options i just thought it was the defaults.