SSH connection reset

Hi,
I started to use Clear Linux, when connecting through SSH(form my windows) it succeeds but soon after the connection get reset.

Another thing is that even when doing the following on the machine(not through SSH) for trying to fix it, i get a “Permission denied” even if the user in question is sudoer
sudo echo “ClientAliveInterval 300” >> /etc/sshd/ssh_config

SSH with any other non Clear Linux machine work from the same windowxs machine
Anything I am missing?

Connection should be reset when it’s been inactive for a certain period of time.


The sudo doesn’t hold after the pipe.

Try

 echo “ClientAliveInterval 300” | sudo tee -a /etc/sshd/ssh_config
1 Like