H3C 交换机配置ssh登陆

1.开启ssh服务,创建密钥。

<D05-S5048-02>system-view 
[D05-S5048-02]ssh server enable //开启ssh服务
[D05-S5048-02]public-key local create rsa //创建rsa密钥
[D05-S5048-02]public-key local create dsa //创建dsa密钥

2.配置vty虚拟接口。

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

3.创建配置用户。

[D05-S5048-02]local-user iautos //创建用户iautos
[D05-S5048-02-luser-manage-iautos]password simple P@ssw0rd102 //设置密码P@ssw0rd102
[D05-S5048-02-luser-manage-iautos]service-type ssh //设置用户登陆权限为ssh
[D05-S5048-02-luser-manage-iautos]authorization-attribute level3 //设置用户级别为3管理级
[D05-S5048-02-luser-manage-iautos]quit //退出用户配置模式
[D05-S5048-02]save    //保存配置

4.完成。

猜你喜欢

转载自www.cnblogs.com/xzlive/p/11507351.html