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.


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-source

ssh server-source


The ssh server-source command specifies a source IP address for an SSH server.

The undo ssh server-source command deletes the source IP address of an SSH server..

By default, the source IP address of an SSH server is not specified.


ssh server-source { -a [ ipv6 ] source-ip-address | -i [ ipv6 ] interface-type interface-number }

undo ssh [ ipv6 ] server-source


Parameter Description Value

Configures the SSH server to support an IPv6 source address.

-a source-ip-address

Specifies the source IP address for the SSH server. The loopback IP address is recommended.

-i interface-type interface-number

Specifies the loopback interface of the SSH server as the source interface.

If no loopback interface is configured or no IP address is configured for the source interface, the command fails to be executed.



System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If no source IP address is specified, the SSH server uses the source IP address specified by routes to send and receive packets. The source IP address must be configured for an interface with stable performance, such as the loopback interface. Using the loopback interface as the source IP address simplifies the ACL rule and security policy configuration. This shields the IP address differences and interface status impact, filters incoming and outgoing packets, and implements security authentication.


  • After the source IP address is specified for the SSH server, you must use the specified IP address to log in to the SSH server.
  • If the configured source IP address does not exist on the SSH server, configure this IP address on the device and then restart the SSH service. Then you can log in to the device.
  • If the SSH service has been enabled, the SSH service restarts after the ssh server-source command is executed.


# Set the source IP address of the SSH server to LoopBack0.

<Huawei> system-view
[Huawei] ssh server-source -i loopback 0
Info: Succeeded in closing the STELNET server.
Info: Succeeded in setting the source interface of the ssh server to LoopBack0
Info: Succeeded in starting the STELNET server.
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 134941

Downloads: 142

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next