OSMC Raspberry Pi SSH,Connection closed by foreign host

Every single time I try to connect to SSH with any client I get “Connection is closed by foreign host”. Can anyone help?

Thanks in advance,Muthu

Is the SSH service enabled in MyOSMC -> Services ?

What SSH clients, specifically, are you using ? In recent months OpenSSH have disabled some encryption methods that are now considered to be insecure, you might find yourself unable to connect if you’re using a very old or badly configured SSH client which is trying to use one of these no longer secure encryption methods.

I was using PUTTY and it got fixed after a simple reinstall of OSMC