Configuring the router login via ssh

1 using rsa local-key-pair create command to generate the RSA key pair in the local R2

2 VTY user interfaces on R2, provided the user authentication mode is specified and the AAA authorization and authentication VTY user support only SSH protocol --- user-interface vty 0 4 authentication-mode aaa protocol inbound ssh

3 Use the local-user command to create local user and password

4 the local user's access type for the SSH local-user mahuanchen service-type ssh

5 Use the ssh user command to create a new SSH user with the name mahuanchen, SSH user authentication method specified for the Password

6 Use stelnet server enable SSH function of the device is turned on

7 using the SSH server command on R1 stelnet

Note: The first time you log on, open the SSH client because the initial authentication so to enter the password, the system will automatically assign and save the RSA public key Once logged in, login authentication for the next

Illustrated as follows

 

 

 Use the following command to set ip address for the device (usually an error is probably because of this)

 

 

 

 

 

 

 

 

 

 

 

 

 

 Check the configuration of the user's ssh

 

 

 Open ssh server function

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/zhao-yang/p/11913379.html