Linux: Connection reset when connecting to a ssh server
you are trying to connect to a ssh server and got the error: Connection reset by 18.104.22.168 port 22
This usually occures when the host keys configured in /etc/ssh/sshd_config on the server are missing. For example you have deployed a fresh Linux Image to a device where sshd isn’t configured yet.
Solution: Generate the missing keys as explained here