Just a quick note to solve my problem with SSH, I can connect to my remote server OK with Putty or Bitvise SSH but not with Cywin or Babun SSH command line. The error was “Connection reset by peer”
After more than 2 hours digging on the Internet to solve the problem, I got this working around
ssh -o HostKeyAlgorithms=ssh-rsa,ssh-dss -o KexAlgorithms=diffie-hellman-group1-sha1 -o Ciphers=aes128-cbc,3des-cbc -o MACs=hmac-md5
Hope that it might help you too!