记录华为交换机5352 SSH合规问题

2022-08-16 08:57:24 浏览数 (1)

1.生成本地RSA密钥

代码语言:javascript复制
[Huawei-5352-SW02] rsa local-key-pair create

2.创建本地用户gojogo,设置用户接口上认证模式为AAA认证

代码语言:javascript复制
[Huawei-5352-SW02] local-user gojogo password ciper gojogo
[Huawei-5352-SW02-user-client001] local-user gojogo service-type ssh
[Huawei-5352-SW02]user-interface vty 0 4
[Huawei-5352-SW02-user-vty0-4] authentication-mode aaa

3.设置设备上远程用户登录协议为SSH

代码语言:javascript复制
[Huawei-5352-SW02-user-vty0-4] protocol inbound ssh
[Huawei-5352-SW02] ssh user gojogo authentication-type password

4.选择一台作为跳机做测试

代码语言:javascript复制
<Huawei-5352-SW01>sys
[Huawei-5352-SW01]stelnet ip地址
[Huawei-5352-SW01]输入username
[Huawei-5352-SW01]y
[Huawei-5352-SW01]y
[Huawei-5352-SW01]输入password
<Huawei-5352-SW02>

5.出现上述的就成功了

0 人点赞