The configuration is incorrect. For example, the STelnet service is disabled on the switch.
Solution: Check whether the configuration is correct and complete. You can download the product documentation of Huawei CloudEngine switches and find the document "Logging In to the Device Through STelnet" for reference.
The switch functions as the SSH server and its SSH version is later than that of the SSH client. The SSH login fails because the SSH versions are different.
Solution:
In V100R002C00, run the ssh server compatible-ssh1x disable command in the system view to configure the SSH server to be compatible with earlier SSH versions. By default, compatibility with earlier SSH versions is enabled.
In V100R003C00 and later versions, run the ssh server compatible-ssh1x enable command in the system view to configure the SSH server to be compatible with earlier SSH versions. By default, compatibility with earlier SSH versions is disabled.
The switch functions as an SSH client and connects to the SSH server for the first time. The authentication fails because the SSH server's public key is not configured on the switch.
Solution: Run the ssh client first-time enable command in the system view to enable first-time authentication on the SSH client. By default, the function is disabled. Access the SSH server and save the SSH server's public key on the SSH client. The switch uses the saved public key to authenticate the SSH server next time it connects to the server.
The SSH service type is not configured. By default, no service type is configured.
Solution: Run the ssh user user-name service-type { stelnet | all } command in the system view to set the SSH service type to STelnet or all.
If the fault persists, contact technical support personnel.


