WLAN AP AirEngine X700 V600R024C00 MD-CLI Configuration Reference
Configuring an SSH Server
Configuring the SSH Server Function and Related Parameters
Context
This section describes how to configure the SSH server function and parameters, including generating the local key pair of the server, enabling the SSH server function, and setting server parameters, such as the port number, listening interface, and PKI realm.
For details about configuration parameters, see huawei-sshs.yang.
To ensure that the SSH algorithm negotiation is successful, the SSH client must support the key exchange algorithm, encryption algorithm, public key algorithm, and HMAC algorithm configured on the SSH server.
The SSH server does not support SSH1.X.
After the SSH service is disabled or the SSH server configuration is modified, the established connection is not torn down and the new configuration takes effect upon the next login.
Procedure
- Enter the edit-config mode.
edit-config
- Enable the SSH server function.
- Enter the server enabling view.
sshs server-enable
- Enable the SSH server function.
stelnet-ipv4-enable enable
By default, the STelnet service is disabled. The STelnet service is enabled by default in factory settings.
- Enable the SFTP server function.
sftp-ipv4-enable enable
By default, the SFTP service is disabled. The SFTP service is enabled by default in factory settings. After logging in to the server, the client is in the /sftp directory by default and can access subdirectories of the /sftp directory. In addition, the client can switch to the /home directory and its subdirectories. Only one session is supported. Only the read operation is supported, and the write operation is not supported.
- Enter the server enabling view.
- Configure the port number of the SSH server.
- Enter the port view.
sshs server-port
- Set the server port.
ipv4-port-number number
By default, the port number of an SSH server is 22.
- Enter the port view.
- Set the source interface of the SSH server.
sshs ipv4-server-sources ipv4-server-source src-interface src-interface
By default, the source interface of the SSH server is VLANIF 1.
- Configure a PKI realm.
sshs server pki-domain pki-domain
When the SSH server performs PKI certificate authentication with an SSH client, the identity certificate of the server is obtained from the PKI realm.
- Commit the configuration.
commit
Configuring an SSH User
Context
Configuring an SSH user includes creating an SSH user and configuring a PKI realm for the SSH user.
Procedure
- Enter the editing view.
edit-config
- Create an SSH user.
sshs users user name user-name
- Configure a PKI realm for the SSH user.
pub-key-type PKI key-name key-name
pub-key-type specifies the public key type. Currently, only PKI is supported. key-name specifies the name of the PKI realm bound to the user.
- Commit the configuration.
commit