华为交换机配置SSH远程登陆
生活随笔
收集整理的這篇文章主要介紹了
华为交换机配置SSH远程登陆
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
拓撲圖
?1、配置IP
<Huawei>sys
[Huawei]sys SW1
[SW1]un in en
[SW1]vlan 137
[SW1-vlan137]int e0/0/1
[SW1-Ethernet0/0/1]p l a
[SW1-Ethernet0/0/1]p d v 137
[SW1-Ethernet0/0/1]int vlanif 137
[SW1-Vlanif137]ip addr 192.168.137.10 24
[SW1-Vlanif137]quit
2、開啟stelnet權限,這里就是指ssh
[SW1]stelnet server enable?
3、創建ssh用戶名為admin
# 創建用戶
[SW1]ssh user admin# 認證方式為密碼
[SW1]ssh user admin authentication-type password# 服務類型為ssh
[SW1]ssh user admin service-type stelnet?
4、進入aaa模式下配置用戶
# 進入aaa模式
[SW1]aaa# 配置密碼為 Admin@123
[SW1-aaa]local-user admin password cipher Admin@123# 配置用戶權限 15是最高
[SW1-aaa]local-user admin privilege level 15# 允許用戶ssh訪問權限
[SW1-aaa]local-user admin service-type ssh
[SW1-aaa]quit
5、配置vty界面支持的登錄協議
[SW1]user-interface vty 0 4# 認證為aaa
[SW1-ui-vty0-4]authentication-mode aaa# 登陸協議為ssh
[SW1-ui-vty0-4]protocol inbound ssh
6、Xshell 驗證登陸
Connecting to 192.168.137.10:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.WARNING! The remote SSH server rejected X11 forwarding request.Info: The max number of VTY users is 5, and the numberof current VTY users on line is 1.The current login time is 2023-01-11 17:20:44.
<SW1>
?
總結
以上是生活随笔為你收集整理的华为交换机配置SSH远程登陆的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: props的理解和使用
- 下一篇: 从单亲家庭内向小男生到哈佛耶鲁全奖,百万