首页 > 电脑专区 > 设置技术 >

H3C交换机配置SSH(Stelnet)

设置技术 2021-06-25 21:37:04

1、# 生成RSA密钥对。

 

<Switch> system-view

 

[Switch] public-key local create rsa

 

 

2、# 生成DSA密钥对。

 

[Switch] public-key local create dsa

 

 

3、# 生成ECDSA密钥对。

 

[Switch] public-key local create ecdsa secp256r1

 

 

4、# 开启Stelnet服务器功能。

 

[Switch] ssh server enable

 

 

5、# 配置VLAN接口2的IP地址,客户端将通过该地址连接Stelnet服务器。

 

[Switch] interface vlan-interface 2

 

[Switch-Vlan-interface2] ip address 192.168.1.40 255.255.255.0

 

[Switch-Vlan-interface2] quit

 

 

6、# 设置Stelnet客户端登录用户线的认证方式为AAA认证。

 

[Switch] line vty 0 63

 

[Switch-line-vty0-63] authentication-mode scheme

 

[Switch-line-vty0-63] quit

 

 

7、# 创建设备管理类本地用户client001,并设置密码为明文aabbcc,服务类型为SSH,用户角色为network-admin。

 

[Switch] local-user client001 class manage

 

[Switch-luser-manage-client001] password simple aabbcc

 

[Switch-luser-manage-client001] service-type ssh

 

[Switch-luser-manage-client001] authorization-attribute user-role network-admin

 

[Switch-luser-manage-client001] quit

 

 

8、# 配置SSH用户client001的服务类型为Stelnet,认证方式为password认证。(此步骤可以不配置)

 

[Switch] ssh user client001 service-type stelnet authentication-type password



标签: H3C交换机配置 H3C交换机

[免责声明]本文来源于网络,不代表本站立场,如转载内容涉及版权等问题,请联系邮箱:83115484#qq.com,#换成@即可,我们会予以删除相关文章,保证您的权利。转载请注明出处:http://www.tutorialesandroide.com/computer/luyouqi/1617.html

飞兔问答 Copyright © 2016-2021 www.tutorialesandroide.com. Some Rights Reserved. 备案号:渝ICP备2023004149号-43

本站非盈利性质,内容来源于互联网,如有冒犯请联系我们立删邮箱:83115484#qq.com,#换成@就是邮箱 网站地图