No machine can access to hostA via ssh

Solution

ls -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 Description

There 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

=============================

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值