Telnet
1.华为配置命令
认证模式:AAA(用户名和密码模式)和Password
- password模式:
[Huawei]telnet server enable
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode password
[Huawei-ui-vty0-4]set authentication password cipher
Enter Password(<8-128>): 需要输入的密码
- AAA模式
[Huawei]telnet server enable
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]protocol inbound telnet
[Huawei]aaa
[Huawei]local-user 用户名 password ciplocauher 密码
[Huawei-aaa]local-user 用户名 privilege level 15
[Huawei-aaa]local-user 用户名 service-type telnet
2.锐捷配置命令
认证模式: 用户名和密码模式
Ruijie(config)#enable service telnet-server
Ruijie(config)#line vty 0 4
Ruijie(config-line)#login local
Ruijie(config)#username 用户名 password 密码
Ruijie(config)#service password-encryption //密码不可见
SSH
1.华为配置命令
认证模式:AAA(用户名和密码模式)
[Huawei]stelnet server enable //开启SSH服务
[Huawei]ssh server-source all-interface*//允许全部接口用SSH登录*
Warning:The operation will reboot the HTTP server. Continue? [Y/N]:Y
Warning:It expandes the range of accessed Ip.
[Huawei]Rsa local-key-pair create //生成本地密钥对推荐1024
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]protocol inbound ssh
[Huawei]aaa
[Huawei-aaa] local-user 用户名 password irreversible-cipher 密码
[Huawei-aaa] local-user 用户名 privilege level 15 //权限,3-15为管理员,如果要设置super密码,需要降低权限
[Huawei-aaa] local-user 用户名 service-type ssh
2.锐捷配置命令
认证模式: 用户名和密码模式
Ruijie(config)#enable service ssh-server //开启SSH服务
Ruijie(config)#ip ssh version 2 //设置版本为2 ,默认为1.99
Ruijie(config)#crypto key generate rsa //生成本地密钥对推荐1024
Ruijie(config)#lin vty 0 4
Ruijie(config-line)# login local
Ruijie(config-line)#transport input ssh
Ruijie(config)#username 用户名 password 密码
Ruijie(config)#service password-encryption //密码不可见