h3c配置SSH服務(wù)命令、華三交換機(jī)配置SSH用戶登錄交換機(jī)或路由器……等設(shè)備,可以方便我們遠(yuǎn)程管理設(shè)備,不用帶Console線跑現(xiàn)場了。
方法步驟:
1、SW上開啟SSH服務(wù)
[SW]ssh server enable
2、 配置ssh服務(wù)的用戶名、密碼
用戶名admin、密碼admin
[SW]local-user admin
New local user added.
[SW-luser-manage-admin]password simple admin
[SW-luser-manage-admin]
3、配置改用戶的權(quán)限為網(wǎng)絡(luò)管理級別
network-admin是最高級管理員權(quán)限
[SW-luser-manage-admin]authorization-attribute user-role network-admin
4、 配置該用戶可以管理的協(xié)議為ssh
[SW-luser-manage-admin]service-type ?
ftp FTP service
http HTTP service type
https HTTPS service type
pad X.25 PAD service
ssh Secure Shell service
telnet Telnet service
terminal Terminal access service
[SW-luser-manage-admin]service-type ssh
[SW-luser-manage-admin]quit
5、設(shè)置SSH客戶端登錄用戶界面的認(rèn)證方式為scheme方式
[SW]line vty 0 63
[SW-line-vty0-63]authentication-mode scheme
[SW-line-vty0-63]quit
[SW]
6、 配置IP地址,使PC和交換機(jī)在內(nèi)網(wǎng)互通
[SW]interface Vlan-interface 1
[SW-Vlan-interface1]ip add 192.168.1.1 24
[SW-Vlan-interface1]quit
[SW]
[PC]interface Vlan-interface 1
[PC-Vlan-interface1]ip a 192.168.1.2 24
[PC-Vlan-interface1]quit
[PC]
五、配置驗(yàn)證
<PC>ssh2 192.168.1.1
Username: admin
Press CTRL+C to abort.
Connecting to 192.168.1.1 port 22.
admin@192.168.1.1's password:
Enter a character ~ and a dot to abort.
******************************************************************************
* Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<SW>
|