To work with Hadoop, I edited the hosts file and deletе some lines (these lines interfered with correct operation). When running ssh localhost, I encountered the error:
kex_exchange_identification: read: Connection reset by peer
Configuration:
hosts.allow:sshd : ALL ALL : ALLhosts.deny:sshd: ALLhosts:## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhostls -ld /etc /etc/ssh* /etc/ssh*/*:lrwxr-xr-x@ 1 root wheel 11 1 янв 2020 /etc -> private/etc drwxrwxr-x 13 root wheel 416 2 окт 23:26 /etc/ssh -rwxrwxr-x 1 root wheel 577388 1 янв 2020 /etc/ssh/moduli -rwxrwxr-x 1 root wheel 1511 1 янв 2020 /etc/ssh/ssh_config -rwxrwxr-x 1 root wheel 1405 22 ноя 18:22 /etc/ssh/ssh_host_dsa_key -rwxrwxr-x 1 root wheel 620 22 ноя 18:22 /etc/ssh/ssh_host_dsa_key.pub -rwxrwxr-x 1 root wheel 525 22 ноя 18:23 /etc/ssh/ssh_host_ecdsa_key -rwxrwxr-x 1 root wheel 192 22 ноя 18:23 /etc/ssh/ssh_host_ecdsa_key.pub -rwxrwxr-x 1 root wheel 387 2 окт 23:26 /etc/ssh/ssh_host_ed25519_key -rwxrwxr-x 1 root wheel 82 2 окт 23:26 /etc/ssh/ssh_host_ed25519_key.pub -rwxrwxr-x 1 root wheel 2622 22 ноя 18:22 /etc/ssh/ssh_host_rsa_key -rwxrwxr-x 1 root wheel 584 22 ноя 18:22 /etc/ssh/ssh_host_rsa_key.pub -rwxrwxr-x 1 root wheel 3169 1 янв 2020 /etc/ssh/sshd_config
How can this be fixed? I really need your help! I'm desperate :(
ssh localhost? You are already on the system, so... why SSH?/etc/hosts? Perhaps you changed the permissions of files and directories in/etc? What doesls -ld /etc /etc/ssh* /etc/ssh*/*show (please add it to your question)chmodwhile working as root?kex_exchange_identification: read: Connection reset by peer Connection reset by ::1 port 22