telnet(密码登陆):
[Huawei]telnet server enable//默认是开启的可不手动开启
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123456
[Huawei-ui-vty0-4]set authentication password cipher huawei //更改密码
[Huawei-ui-vty0-4]user privilege level 3 //设置权限等级3
aaa认证登陆:
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]q
[Huawei]aaa
[Huawei-aaa]local-user user1 password cipher 123456
[Huawei-aaa]local-user user1 service-type telnet
[Huawei-aaa]local-user user1 privilege level 3
ssh:
[Huawei ]stelnet server enable //开启 SSH 协议默认是不开启的 [Huawei ]rsa local-key-pair create //创建加密报文的密钥对 Input the bits in the modulus[default = 512]:1024 // 密钥长度 [Huawei ]aaa //使用 aaa 认证模式 [Huawei -aaa]local-user user-ssh password cipher huawei123 //创建账号及对应密码 [Huawei -aaa]local-user user-ssh privilege level 3//给该账号分配 3 级权限 [Huawei -aaa]local-user user-ssh service-type ssh 创建 ssh 用户 [Huawei -aaa]quit [Huawei ]user-interface vty 0 4 //进入 vty 线路 [Huawei -ui-vty0-4]authentication-mode aaa [Huawei -ui-vty0-4]protocol inbound ssh //开启 vty 线路的 ssh 访问功能 [Huawei -ui-vty0-4]quit [Huawei ]ssh user user-ssh auth entication-type all //定义 ssh 用户的认证模式 登陆ssh: [Huawei ]ssh client first-time enable//需要第一次开启客户端个人学习笔记,如有错误,感谢指正。
更多推荐
ensp 华为路由器配置远程登陆(telnet,ssh)
发布评论