I was trying to setup sublime text editor to connect via sftp on my server but was getting connection timeout all the time. I found a solution and followed this article : https://superuser.com/a/957666
They suggested to change the server config to accept a mac algorithm used by the client by adding this hmac-sha1
on KexAlgorithms
.
So in /etc/ssh/sshd_config
, I changed:
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
to
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,hmac-sha1
And now i try to login on my server and i get Network error: Connection refused
How can i regain access to my server? My server is hosted on kimsufy.