Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save henrytran9x/fbb3111accfc0082df7d58fb1b92e8ba to your computer and use it in GitHub Desktop.
Save henrytran9x/fbb3111accfc0082df7d58fb1b92e8ba to your computer and use it in GitHub Desktop.
ssh_exchange_identification: read: Connection reset by peer for Centos 7
service sshd stop
sudo vi /etc/hosts.allow
#add text in file
sshd: ALL
#your need remove directory empty
rm -rf /var/empty
# so create directory empty again and create directory sshd into dir empty
mkdir /var/empty/sshd
# start again sshd
service sshd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment