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

Reminder

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

upgrade

AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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).
ssh server port

ssh server port

Function

The ssh server port command changes the listening port number of the SSH server.

The undo ssh server port command restores the default listening port number of the SSH server.

The default listening port number of the SSH server is 22.

Format

ssh server port port-number

undo ssh server port

Parameters

Parameter Description Value
port-number Specifies the listening port number of the SSH server. The value is 22 or an integer ranging from 1025 to 55535.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Configure the listening port number of the SSH server to prevent from malicious access to the SSH service standard port and ensure security.

Precautions

The SSH client can log in successfully with no port specified only when the server is listening on port 22. If the server is listening on another port, the port number must be specified upon login.

Before changing the current port number, disconnect all devices from the port. After the port number is changed, the server starts to listen on the new port.

Example

# Set the listening port number of the SSH server is 1025.

<Huawei> system-view
[Huawei] ssh server port 1025
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 48269

Downloads: 102

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next