H3C configuration ssh login

1. Start the ssh service and create a key.

[H3C]ssh server enable //开启ssh服务
[H3C]public-key local create rsa //创建rsa密钥
[H3C]public-key local create dsa //创建dsa密钥

2. Configure the vty virtual interface.

[H3C]user-interface vty 4 //进入vty配置
[H3C-line-vty4]authentication-mode scheme //设置认证模式
[H3C-line-vty4]protocol inbound ssh //设置登陆协议为ssh
[H3C-line-vty4]quit //退出vty模式

3. Create a configuration user.

[H3C]local-user king //创建用户king
[H3C-luser-manage-king]password simple 123456 //设置密码123456
[H3C-luser-manage-king]service-type ssh //设置用户登陆权限为ssh
[H3C-luser-manage-king]authorization-attribute user-role level-3 //设置用户级别为3管理级
[H3C-luser-manage-king]quit //退出用户配置模式

4. Done.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325149354&siteId=291194637