Created
June 24, 2017 08:04
-
-
Save henrytran9x/fbb3111accfc0082df7d58fb1b92e8ba to your computer and use it in GitHub Desktop.
ssh_exchange_identification: read: Connection reset by peer for Centos 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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