Score:0

why the linux sshd refused the connection from putty while dos cmd accepted?

mm flag

I installed a SLES12 VM, usually I used putty to ssh to it to run my test from my windows. This morning, I found putty fail to ssh to this VM with this error --

2022-03-24T09:13:58.888898+08:00 sles12 sshd[2588]: Accepted keyboard-interactive/pam for root from 192.168.160.1 port 60620 ssh2
2022-03-24T09:13:58.889801+08:00 sles12 sshd[2588]: pam_unix(sshd:session): session opened for user root by (uid=0)
2022-03-24T09:13:58.891378+08:00 sles12 systemd-logind[1221]: New session 9 of user root.
2022-03-24T09:13:58.902088+08:00 sles12 systemd[1]: Started Session 9 of user root.
**2022-03-24T09:13:58.903541+08:00 sles12 sshd[2588]: error: connect_to 0 port 52096: failed.**
2022-03-24T09:13:59.502000+08:00 sles12 sshd[2588]: pam_unix(sshd:session): session closed for user root
2022-03-24T09:13:59.509209+08:00 sles12 systemd-logind[1221]: Removed session 9.

I never changed the default sshd settings on my SLES12 VM, yet keep all default settings on putty. Then I tried with win10's shell cmd -- then to my big surprise -- it works fine, when I type --

ssh [email protected] 

It succeeds with these messages on /var/log/messages --

2022-03-24T09:13:38.232538+08:00 sles12 sshd[2539]: Accepted keyboard-interactive/pam for root from 192.168.160.1 port 60613 ssh2
2022-03-24T09:13:38.233184+08:00 sles12 sshd[2539]: pam_unix(sshd:session): session opened for user root by (uid=0)
2022-03-24T09:13:38.235368+08:00 sles12 systemd-logind[1221]: New session 8 of user root.
2022-03-24T09:13:38.251185+08:00 sles12 systemd[1]: Started Session 8 of user root.

That "sshd[2588]: error: connect_to 0 port 52096: failed" has gone... But when I back to putty -- it failes again with same error message. And it's not the firewall issue as I turned off the iptables on my SLES12 VM, and connect to it from the same host -- that win10. I searched but found nothing valuable. Please kind advise. Thanks

Regards Eisen

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.