h3c 交换机SSH 配置方法 1、生成密钥 rsa local-key-pair create 2、创建 SSH用户 local-user ssh password cipher h3c_^*)
^% service-type ssh level 3 quit 3、指定 SSH用户认证方式及服务类型 ssh user ssh authentication-type password ssh user ssh service-type stelnet 4、在 VTY接口下指定用 SSH协议登陆 user-interface vty 0 authentication-mode scheme protocol inbound ssh quit 3
配置步骤 (1) 配置SSH服务器Switch # 生成RSA密钥对,并启动SSH服务器
system-view [Switch] public-key local create rsa [Switch] ssh server enable # 配置VLAN接口 1的 IP地址,客户端将通过该地址连接 SSH服务器
[Switch] interface vlan-interface 1 [Switch-Vlan-interface1] ip address 192
40 255
0 [Switch-Vlan-interface1] quit # 设置SSH客户端登录用户界面的认证方式为 AAA认证
[Switch] user-interface vty 0 4 [Switch-ui-vty0-4] authentication-mode scheme # 设置Switch上远程用户登录协议为 SSH
[Switch-ui-vty0-4] protocol inbound ssh [Switch-