I trying to install Docker on my server I was try install on new system via
$ curl -sSL https://get.docker.com | sh
$ sudo usermod -aG docker $(whoami)
I was try this tutorial after adding non-root user
Result is the same: after logout i can’t ssh connect to server and get kex_exchange_identification: read: Connection reset by peer
ssh -Tv gives:
OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/mithra/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to MY.SER.VER.IP [MY.SER.VER.IP] port 22.
debug1: Connection established.
debug1: identity file /home/mithra/.ssh/id_rsa type 0
debug1: identity file /home/mithra/.ssh/id_rsa-cert type -1
debug1: identity file /home/mithra/.ssh/id_dsa type -1
debug1: identity file /home/mithra/.ssh/id_dsa-cert type -1
debug1: identity file /home/mithra/.ssh/id_ecdsa type -1
debug1: identity file /home/mithra/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/mithra/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/mithra/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/mithra/.ssh/id_ed25519 type 3
debug1: identity file /home/mithra/.ssh/id_ed25519-cert type -1
debug1: identity file /home/mithra/.ssh/id_ed25519_sk type -1
debug1: identity file /home/mithra/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/mithra/.ssh/id_xmss type -1
debug1: identity file /home/mithra/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.5
kex_exchange_identification: read: Connection reset by peer
how to fix it?