1、华为交换机设置用户能够通过ssh访问已经完成
华为交换机SSH 创建管理账号密码
2、为了安全,需要指定特定IP才能访问ssh端口
<Huawei_x.x.x.x>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei_x.x.x.x]acl number 2100
[Huawei_x.x.x.x-acl-basic-2100] rule 9 permit source 192.168.x.x1 0
[Huawei_x.x.x.x-acl-basic-2100] rule 10 permit source 192.168.x.x2 0
[Huawei_x.x.x.x-acl-basic-2100] rule 11 permit source 192.168.x.x3 0
[Huawei_x.x.x.x-acl-basic-2100] rule 12 permit source 192.168.x.x.4 0
[Huawei_x.x.x.x-acl-basic-2100] rule 13 permit source 192.168.x.x5 0
[Huawei_x.x.x.x-acl-basic-2100] rule 25 permit source 192.168.x.x6 0
[Huawei_x.x.x.x-acl-basic-2100] rule 26 permit source 192.168.8x.196 0
[Huawei_x.x.x.x-acl-basic-2100] undo rule 26
[Huawei_x.x.x.x-acl-basic-2100] disp this
[Huawei_x.x.x.x]user-interface vty 0 4
[Huawei_x.x.x.x-ui-vty0-4] acl 2100 inbound
3、保存配置文章来源:https://www.toymoban.com/news/detail-702602.html
<Huawei_x.x.x.x>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0..
Save the configuration successfully.
Now saving the current configuration to the slot 1.
Save the configuration successfully.文章来源地址https://www.toymoban.com/news/detail-702602.html
到了这里,关于华为交换机设置指定IP访问ssh端口的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!