public-key local create rsa # 生成RSA密钥对。
public-key local create dsa # 生成DSA密钥对。
ssh server enable # 使能SSH服务器功能。
[H3C] user-interface vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme # 设置用户接口上的认证模式为AAA认证。
[H3C-ui-vty0-4] protocol inbound ssh # 设置用户接口上支持SSH协议。
[H3C] local-user client001 class manage
New local user added.
[H3C-luser-manage-client001] password simple aabbcc
[H3C-luser-manage-client001] service-type ssh
[H3C-luser-manage-client001] authorization-attribute user-role network-operator
# 创建本地用户client001,并设置用户密码、服务类型和用户角色。