SSH Service enable or disable Huawei OLT
[bodyads]
Today i will show how to SSH Service enable or disable in Huawei OLT. When you need to disable or enable the network service ports such as the DBWIN, ntp, radius, snmp, SSH, Telnet and Trace in the system, run below command. After the command is executed successfully, the monitoring task of the corresponding port is disabled or enabled.
Format:
sysman service { dbwin | dhcp-relay | dhcpv6-relay | ntp6 | ntp | radius | snmp | ssh-tl1 | ssh | telent-proxy | telnet-tl1 | telnet [ port portid ] | trace } { disable | enable }
Parameters:
Parameter | Description |
---|---|
dbwin | Indicates the DBWIN service. |
dhcp-relay | Indicates the DHCP relay service. |
dhcpv6-relay | Indicates the DHCPv6 relay service. |
ntp6 | Indicates the Ntp IPv6 net service. |
ntp | Indicates the NTP service. |
radius | Indicates the radius service. |
snmp | Indicates the SNMP service. |
ssh-tl1 | Indicates the SSH service of TL1. |
ssh | Indicates the SSH service. |
telnet-proxy | Indicates the telnet proxy service. |
telnet-tl1 | Indicates the telnet service of TL1. |
telnet | Indicates the telnet service. |
port portid | Indicates the portid used by telnet service. |
trace | Indicates the trace service. |
enable | Enables the network service ports. When you need to enable the network service ports, use this parameter. |
disable | Disables the network service ports. When you need to disable the network service ports, use this parameter. |
Modes:
Global config mode
Level:
Administrator level / Root user
Usage Guidelines:
- After a network service port is disabled, the user on the port is forced to go offline.
- By default, only the DBWIN, TRACE, SSH-TL1, and TELNET-TL1 network service are disabled.
To query the status of the network service port of the system, do as follows:
SSH Service enable or disable Example:
[bodyads]
To disable a SSH service port, do as follows:
Gponsolution(config)#sysman service
{ dbwin<K>|dhcp-relay<K>|dhcpv6-relay<K>|ntp6<K>|ntp<K>|radius<K>
|snmp<K>|ssh-tl1<K>|ssh<K>|telnet-proxy<K>|telnet-tl1<K>|telnet<K>|trace<K> }:ssh
{ disable<K>|enable<K>|port<K> }:disable
Command:
                       sysman service ssh disable
After the command is executed successfully,all the network service of the same
type will be forcibly disabled. If you want to enable the network service
again,wait for at least two minutes and then enable it. Are you sure to
continue? (y/n)[n]:y
Gponsolution(config)#
Â