kex_exchange_identification: read: Connection reset by peer
Hello,
I'm trying to disable password auth for SSH and enable key authentication.
I created user green-set keys in cpanel user ssh->manage keys and authorized the key.
If I use a remote terminal to connect:
ssh -i /Users/user_remote/.ssh/id_rsa green-set@host68.remote-server-domain-123.net -p 2222
The server does have a non-standard SSH port of 2222.
I get this error in my remote terminal:
user_remote@Coconut % ssh -i /Users/user_remote/.ssh/id_rsa green-set@host68.remote-server-domain-123.net -p 2222
kex_exchange_identification: read: Connection reset by peer
Connection reset by 123.456.789.123 port 2222
user_remote@Coconut Desktop %
Why would the remote server reset the connection for key auth and allow password?
Thanks,
Mike
-
Hi, check if there any ssh connection blocking from the firewall or the connection is being blocked due to the Host-Based Access Control Lists in hosts.deny try restarting SSH server. 0 -
Thanks, I checked there were not blocks. I did find an extra ALLOW at the end of my host entry in the hosts.allow file. After that I disabled password auth and the key auth started to work. 0 -
I'm glad you were able to track that down! 0
Please sign in to leave a comment.
Comments
3 comments