1-32
View
System view
Parameters
interface-type: Source interface type.
interface-number: Source interface number.
Description
Use the ssh-server source-interface command to specify a source interface for the SSH server. If the
specified interface does not exist, the command fails.
Use the undo ssh-server source-interface command to cancel the source interface setting.
You can specify a source interface that corresponds to the IP address for the SSH server to provide
SSH access services for the clients. In this way, the SSH clients can only access the SSH server using
the IP address of the specified interface as the destination. This improves the service manageability
when the SSH server has multiple IP addresses and interfaces,
Examples
# Specify Vlan-interface 1 as the source interface of the SSH server.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ssh-server source-interface Vlan-interface 1
ssh-server source-ip
Syntax
ssh-server source-ip ip-address
undo ssh-server source-ip
View
System view
Parameters
ip-address: IP address to be set as the source IP address.
Description
Use the ssh-server source-ip command to specify a source IP address for the SSH server. If the
specified IP address is not an IP address of the device, the command fails.
Use the undo ssh-server source-ip command to cancel the source IP address setting.
You can configure a source IP address for the SSH server to provide SSH access service for the SSH
clients. In this way, the SSH clients can only access the SSH server using the specified IP address as
the destination. This improves the service manageability when the SSH server has multiple IP
addresses.
Examples
# Specify source IP address 192.168.0.1 for the SSH server.