华为SSH配置方案1:
1.生产本地密钥对:
<HUAWEI> system-view
[HUAWEI] rsa local-key-pair create
2.模数:1024
3.配置VTY用户界面:
ssh命令指定端口[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-4] authentication-mode aaa
[HUAWEI-ui-vty0-4] protocol inbound ssh
[HUAWEI-ui-vty0-4] quit
4. 创建SSH用户,并配置用户的认证方式为password:
[HUAWEI] ssh user client001 authentication-type password
5.配置aaa:
[HUAWEI] aaa
[HUAWEI-aaa] local-user client001 password cipher huawei
[HUAWEI-aaa] local-user client001 privilege level 3
[HUAWEI-aaa] local-user client001 service-type ssh
6.使能STelent功能:
[HUAWEI] stelnet server enable
7.配置用户的服务类型为STelnet:
[HUAWEI] ssh user client001 service-type stelnet
8.客户端第一次登录:
[HUAWEI] ssh client first-time enable
H3C SSH配置方案1
(1) 配置SSH服务器Switch
# 生成RSADSA密钥对,并启动SSH服务器。
<Switch> system-view
[Switch] public-key local create rsa
[Switch] public-key local create dsa
[Switch] ssh server enable
# 设置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认证。
[Switch] ssh user client001 service-type stelnet authentication-type password