开启SSH服务

1.详细配置

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 user-role  level3 //设置用户级别为3管理级
[D05-S5048-02-luser-manage-iautos]quit //退出用户配置模式
[D05-S5048-02]save  //保存配置

4.完成。

复制即用

sys
system-view 
ssh server enable
public-key local create rsa 
y




public-key local create dsa



user-interface vty 4
authentication-mode scheme 
protocol inbound ssh 
quit

local-user admin

password simple admin123

authorization-attribute user-role level-15
quit
save
y

results matching ""

    No results matching ""