No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


eSight V300R010C00SPC200, 300, and 500 Local HA System Software Installation Guide (SUSE Linux + Oracle + Veritas) 11

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
How Can I Handle the Problem that the Listening Is for Port 22 of the Linux Operating System

How Can I Handle the Problem that the Listening Is for Port 22 of the Linux Operating System


When the listening status of the port is checked in the Linux security hardening environment, the system has the listening port.

eSightServer145:/opt/eSight/mttools/etc/systool/southip # netstat -ntlp|grep 22  
tcp 0 0* LISTEN 7376/sshd


In an HA system, perform the following operations on both the active and standby servers:

  1. Use PuTTY to log in to the server as the ossuser user and run the following command to switch to the root user:

    su - root

  2. Modify the sshd_config file in "/etc/ssh".

    # vi /etc/ssh/sshd_config

  3. Press i to enter the editing mode.
  4. Add the listening IP address to the file. You can configure multiple listening IP addresses based on the site requirements.

    ListenAddress IP address 1 to be listened on
    ListenAddress IP address 2 to be listened on

  5. Press Esc to exit the editing mode, and run the :wq command to save and exit the file.
  6. After the file is configured, restart the sshd service for the configuration to take effect.

    # service sshd restart

  7. Verify the configuration result and check the port listening information.

    # netstat -ntlp|grep 22

    If the port information is consistent with the configured information, the configuration is successful.
    tcp        0      0*               LISTEN      13630/sshd          
    tcp        0      0*               LISTEN      13630/sshd  

Updated: 2019-12-13

Document ID: EDOC1100044372

Views: 38832

Downloads: 27

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next