admin 管理员组

文章数量: 1087139


2024年4月15日发(作者:javabean三种配置)

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.168.1.40 255.255.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-ui-vty0-4] quit

# 创建本地用户client001,并设置用户访问的命令级别为3。

[Switch] local-user client001

[Switch-luser-client001] password simple aabbcc

[Switch-luser-client001] service-type ssh level 3

[Switch-luser-client001] quit

# 配置SSH用户client001的服务类型为Stelnet,认证方式为password认证。


本文标签: 用户 认证 配置 设置