Configure a SSH login case on a Huawei device
SSH is a commonly used secure remote management protocol. The configuration is as follows:
Server side:
User-interface vty 0 4
The authentication-mode aaa / / authentication mode adopts aaa, that is, the user name and password under aaa are called.
Protocol inbound ssh / / this virtual cable allows you to connect using ssh
#
Aaa
Local-user client001 password cipher qytang / / create a user name and corresponding password
Local-user client001 privilege level 3 / / give the client the highest permissions
Local-user client001 service-type ssh / / this user serves the ssh protocol
Quit
#
Ssh user client001 authentication-type password / / this user uses password authentication
Stelnet server enable / / start ssh protocol
Rsa local-key-pair create / / Please select a length. 2048 is recommended.
Client:
Ssh client first-time enable
Stelnet 77.1.1.1
[R6] stelnet 77.1.1.1
Please input the username:client001
Trying 77.1.1.1...
Press CTRL+K to abort
Connected to 77.1.1.1...
Enter password:
User last login information:Access Type: SSH
IP-Address: 10.1.67.6 ssh
Time: 2018-07-04 15:16:19-08:00