admin管理员组文章数量:1337159
远程登录又称为telnet 使用tcp(传输控制协议)的23端口
<Huawei>system-view #进入系统视图
[Huawei]
[Huawei]telnet server enable #使能设备的远程登录 (不能缺少此命令)
[Huawei]user-interface vty 0 4 #进入vty控制台 0 4 代表最多可以同时登录5个用户
[Huawei-ui-vty0-4]authentication-mode password #设置认证方式为密码认证
[Huawei-ui-vty0-4]
[Huawei-ui-vty0-4]set authentication password cipher(表示通过密文加密)/simple(表示通过明文加密)
通过密文加密的形式
[Huawei-ui-vty0-4]set authentication password cipher huawei #设置密码为密文加密为huawei
[Huawei-ui-vty0-4]dis this #查看当前视图的当前配置
#
user-interface con 0
user-interface vty 0 4
set authentication password cipher ^!>_7p':$U^QW:LZJi;=-zE# ###不能通过命令行查看密码(密码huawei通过加密算法转变为 ^!>_7p':$U^QW:LZJi;=-zE#;)
#
通过明文加密的形式
[Huawei-ui-vty0-4]set authentication password simple huawei #明文加密方式,密码为huawei
[Huawei-ui-vty0-4]display this #查看当前视图的当前配置
#
user-interface con 0
user-interface vty 0 4
set authentication password simple huawei 密码为明文的huawei
#
return
设置为不认证方式
<Huawei>system-view #进入系统视图
[Huawei]
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode none #设置认证方式为不认证
验证远程登录的配置是否成功
退出到用户视图下<huawei>
<huawei>是华为设备的用户视图
输入telnet 127.0.0.1 ,即可测试本机的远程登录是否配置成功
<Huawei>telnet 127.0.0.1
按下回车以后
<Huawei>telnet 127.0.0.1
Trying 127.0.0.1 ...
Press CTRL+K to abort
Connected to 127.0.0.1 ...
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 1.
The current login time is 2021-12-18 21:14:15.
<Huawei>#此次视图为远程登录到设备的视图,输入quit退出至原设备
注意:需要设置远程登录用户的优先级,否则会出现报错信息 例如
<Huawei>sys
^
Error: Unrecognized command found at '^' position.
此时需要到退出至设备中进行设置优先级别
<Huawei>q #先退出至原设备
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 0.
Info: The connection was closed by the remote host.
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z. #此时可以正常进入系统视图
[Huawei]user-interface vty 0 4 #需要进入远程登录控制台中设置
[Huawei-ui-vty0-4]user privilege level 15 #设置优先级为最高15 范围为0-15
[Huawei-ui-vty0-4]protocol inbound telnet #在ensp中可以省略此命令,在真实环境需要输入,即登录的协议为telnet
个人学习笔记,仅供参考,欢迎指正。
版权声明:本文标题:华为交换机配置远程登录(telnet) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1740414143a2273279.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论