227
Usage guidelines
This feature allows you to use an SSH client to invoke NETCONF as an SSH subsystem. Then, you
can directly use XML messages to perform NETCONF operations without using the
xml
command.
Before you execute this command, configure the authentication mode for users as
scheme
on the
device. Then, the NETCONF-over-SSH-enabled user terminals can access the device through
NETCONF over SSH.
Only capability set
urn:ietf:params:netconf:base:1.0
is available. It is supported by both the device
and user terminals.
Examples
# Enable NETCONF over SSH.
<Sysname> system
[Sysname] netconf ssh server enable
netconf ssh server port
Use
netconf
ssh
server port
to specify a port to listen for NETCONF over SSH connections.
Use
undo
netconf
ssh
server
port
to restore the default.
Syntax
netconf
ssh
server
port
port-number
undo
netconf ssh
server
port
Default
Port 830 listens for NETCONF over SSH connections.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
port-numbe
r: Specifies a port by its number in the range of 1 to 65535.
Usage guidelines
When assigning a listening port, make sure the specified port is not being used by other services.
The SSH service can share the same port with other services, but it might not operate correctly.
Examples
# Specify port 800 to listen for NETCONF over SSH connections.
<Sysname> system
[Sysname] netconf ssh server port 800
xml
Use
xml
to enter XML view.
Syntax
xml