< Home

Data Model

The configuration model file matching SSH TCP port forwarding is huawei-ssh.yang.

Only the following switch models support this command:

S5720-EI, S5720-HI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730-SI, S5730S-EI, S5731-H, S5731S-H, S5732-H, S5731-S, S5731S-S, S6730-S, S6730S-S, S6720-EI, S6720-HI, S6720S-EI, S6720S-LI, S6720-LI, S6730-H, S6730S-H, S6720S-SI, and S6720-SI

Table 1 Configuration of SSH TCP port forwarding

Object

Description

Value

Remarks

/huawei-ssh:tcp-port-forwarding/operator

Configures a channel for TCP port forwarding.

The value is of the enumerated type:
  • create: Create a channel for TCP port forwarding.
  • destroy: Delete a channel for TCP port forwarding.

N/A

/huawei-ssh:tcp-port-forwarding/forwarding-type

Indicates the type of TCP port forwarding.

The value is of the enumerated type:

remote: Specify remote port forwarding.

N/A

/huawei-ssh:tcp-port-forwarding/remote/listening-port

Indicates the listening port of a peer device.

The value is an integer in the range from 0 to 65535.

Ports 0 to 1023 are privileged ports. If the peer device cannot be listened to because of insufficient permission, the SSH channel fails to be established.

/huawei-ssh:tcp-port-forwarding/remote/ip-address

Indicates the destination IP address of packets in remote port forwarding mode.

The value is in dotted decimal notation.

These two objects are mutually exclusive, so only one of them can be delivered.

/huawei-ssh:tcp-port-forwarding/remote/host-name

Indicates the name of the destination host to which packets are forwarded in remote port forwarding mode.

The value is a character string.

/huawei-ssh:tcp-port-forwarding/remote/server-port

Indicates the listening port number of the destination host to which packets are forwarded in remote port forwarding mode.

The value is an integer in the range from 0 to 65535.

N/A

/huawei-ssh:tcp-port-forwarding/remote/ssh-server-name

Indicates the destination host connected to the SSH client.

The value is a character string.

The commonly used format is user@xx.xx.xx.xx -p PortNumber, in which the user name of the SSH server, host IP address, and port number are specified.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >