ensp 华为路由器配置远程登陆(telnet,ssh)

编程知识 更新时间:2023-04-14 20:51:48

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)

本文发布于:2023-04-12 06:56:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/79b209c671025dcbc80106cfdd6a52fb.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:华为   路由器   远程登陆   ensp   telnet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 69705文章数
  • 14阅读数
  • 0评论数