SSH remote connection with Xshell, not connected

Source: Internet
Author: User

Nov 3 19:31:35 FQHY_DEVLP sshd[8195]: Server listening on 0.0.0.0 Port 22.
136 Nov 3 19:31:47 FQHY_DEVLP sshd[8206]: Refused connect from 101.254.207.4 (101.254.207.4)
137 Nov 3 19:43:21 FQHY_DEVLP sshd[8576]: Refused connect from 101.254.207.4 (101.254.207.4)
138 Nov 3 19:43:52 FQHY_DEVLP sshd[8602]: Refused connect from 101.254.207.4 (101.254.207.4)
139 Nov 3 19:44:36 FQHY_DEVLP sshd[8648]: Accepted password for yuanwz from 101.254.207.4 Port 52700 ssh2
3 19:44:36 FQHY_DEVLP sshd[8648]: Pam_unix (sshd:session): Session opened for user Yuanwz by (uid=0)
141 Nov 3 19:44:49 FQHY_DEVLP sshd[8681]: Refused connect from 101.254.207.4 (101.254.207.4)
142 Nov 3 19:47:47 FQHY_DEVLP sshd[8746]: Refused connect from 101.254.207.4 (101.254.207.4)
143 Nov 3 19:55:45 FQHY_DEVLP sshd[8195]: Received signal 15; Terminating.

Using the default configuration login is not on, occasionally logged on, the IP will be written to/etc/hosts.deny, after emptying the file, will still write

Workaround:

Write Sshd:all in/etc/hosts.allow.

Remove the following lines, that is, do not restrict IP logins
#AllowUsers [Email protected],123.57.163.30
#AllowUsers [Email protected],211.157.155.70,125.33.251.149,182.92.236.4,211.157.155.67
#AllowUsers [Email protected],123.57.163.30,182.92.236.4,125.33.251.109,211.157.155.67,1.12.193.199,1.15.24.16
#AllowUsers [Email protected],123.57.163.30
#AllowUsers [Email protected],123.57.163.30,125.33.251.149,223.223.195.226,211.157.155.67
#AllowUsers [email protected]

#AllowGroups Sshgroup
#AllowGroups Dev

SSH remote connection with Xshell, not connected

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.