In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-10-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Background environment: redhat 7 default: selinux,iptables enabled modification: / etc/ssh/sshd_config1. Single port mode case 1: Port 3333 case 2: Port 22ListenAddress 0.0.0.0 ListenAddress 0.0.0.0:3333Port 3333 case 3: ListenAddress 0.0.0.0:3333Port 22 the above three results are: 3333 case 4: Port 22Port 3333ListenAddress 0.0.0.0 ListenAddress 0.0.0.0:3333Port 6666 result is 6666 case 5: ListenAddress 0.0.0.0:3333ListenAddress 0.0.0.0:6666Port 22 result is 3333, 66662. Multi-port mode case 1: Port 22Port 3333 case 2: ListenAddress 0.0.0.0:22ListenAddress 0.0.0.0333
The final result of the above situation is 222.3333.
Notice of error report: Job for sshd.service failed because a configured resource limit was exceeded. See "systemctl status sshd.service" and "journalctl-xe" for details. Detailed error report: error: Bind to port 3333 on:: failed: Permission denied
1. Since selinux is enabled by default, the ssh port is not allowed to be modified by default security policy. You need to manually modify the policy release.
Close seliunx or semanage port-a-t ssh_port_t-p tcp 3333
two。 Firewall policy add new port
Firewall-cmd-- add-port=3389/tcp-- permanentfirewall-cmd-- reload other notes: if the system has upgraded ssh, modifying the configuration file / etc/ssh/sshd_config will not take effect. After upgrading openssh, the configuration file is / usr/local/etc/sshd_config
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.