华为路由器开启远程ssh登陆
来源:原创
时间:2024-05-07
作者:脚本小站
分类:网络
命令:
aaa local-user huawei password cipher 123456 local-user huawei service-type ssh local-user huawei privilege level 15 ssh server permit interface GigabitEthernet 0/0/1 # 指定登陆的接口 stelnet server enable user-interface vty 0 4 authentication-mode aaa
查看:
<R1>display user-interface Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int 0 CON 0 9600 - 15 - A - 129 VTY 0 - 15 - A - + 130 VTY 1 - 0 15 A - 131 VTY 2 - 0 - A - 132 VTY 3 - 0 - A - 133 VTY 4 - 0 - A - 149 Web 0 9600 - 15 - A - 150 Web 1 9600 - 15 - A - 151 Web 2 9600 - 15 - A - 152 Web 3 9600 - 15 - A - 153 Web 4 9600 - 15 - A - UI(s) not in async mode -or- with no hardware support: 1-128 + : Current UI is active. F : Current UI is active and work in async mode. Idx : Absolute index of UIs. Type : Type and relative index of UIs. Privi: The privilege of UIs. ActualPrivi: The actual privilege of user-interface. Auth : The authentication mode of UIs. A : Authenticate use AAA. N : Current UI need not authentication. P : Authenticate use current UI's password. Int : The physical location of UIs.