<H3C>system-view //进入系统视图
[H3C]interface GigabitEthernet 0/0 //进入接口视图,配置交换机地址
[H3C-GigabitEthernet0/0]ip address 192.168.1.210 255.255.255.0
[H3C]ssh server enable //开启SSH服务
[H3C]local-user admin //创建用户名密码
[H3C-luser-manage-admin]password simple admin123
[H3C-luser-manage-admin]service-type ssh //登录方式设置为ssh
[H3C-luser-manage-admin]authorization-attribute user-role network-admin //设置用户权限为管理员权限
[H3C]user-interface vty 0 4
[H3C-line-vty0-4]authentication-mode scheme //用户名密码验证(AAA认证)
[H3C]public-key local create rsa //生成RSA密钥对
<H3C>save //保存配置