Solutionls -ld /var/empty/sshd/ this file permission was changed to 755 instead of 711 permission.
It should be 711.
ls -ld /var/empty/sshd/ drwx--x--x 2 root root 4096 Aug 31 2017 /var/empty/sshd/
SSH configuration file had permission issue and corrected it.
[root@hostA ~]# uptime 23:26:52 up 31 min, 2 users, load average: 0.03, 0.09, 0.17 [root@hostA ~]# uname -a Linux hostA 4.1.12-124.27.1.el7uek.x86_64 #2 SMP Mon May 13 08:56:17 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux [root@hostA ~]#
Now able to SSH. Please validate. Probelm DescriptionThere is no one machine can access to hostA via ssh. The error is like this: ============================= sysvldb@hostB:dbhome_1 $ ssh hostA ssh_exchange_identification: read: Connection reset by peer
sysvldb@hostB:dbhome_1 $ ssh -vhostA OpenSSH_7.6p1, OpenSSL 1.1.0h-fips 27 Mar 2018 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 25: Applying options for * debug1: Connecting to hostA [XXX.XXX.XXX.XXX] port 22. debug1: Connection established. debug1: identity file /scratch/sysvldb/.ssh/id_rsa type 0 debug1: key_load_public: No such file or directory debug1: identity file /scratch/sysvldb/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /scratch/sysvldb/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /scratch/sysvldb/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /scratch/sysvldb/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /scratch/sysvldb/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /scratch/sysvldb/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /scratch/sysvldb/.ssh/id_ed25519-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6 ssh_exchange_identification: read: Connection reset by peer =============================
|
No machine can access to hostA via ssh
最新推荐文章于 2022-03-03 15:06:16 发布