[h3c]public-key local create rsa
回车
[h3c]public-key local create dsa
回车
[h3c]user-interface vty 0 4
[h3c-ui-vty0-4]authentication-mode scheme
[h3c-ui-vty0-4]protocol inbound ssh
[h3c-ui-vty0-4]quit
[h3c]local-user 用户名
[h3c-luser-用户名]password cipher 密码
[h3c-luser-用户名]service-type ssh
[h3c-luser-用户名]authorization-attribute level 3
[h3c-luser-用户名]quit
[h3c]ssh server enable
[h3c]save
回车
[h3c]public-key local create dsa
回车
[h3c]user-interface vty 0 4
[h3c-ui-vty0-4]authentication-mode scheme
[h3c-ui-vty0-4]protocol inbound ssh
[h3c-ui-vty0-4]quit
[h3c]local-user 用户名
[h3c-luser-用户名]password cipher 密码
[h3c-luser-用户名]service-type ssh
[h3c-luser-用户名]service-type ssh level 3
[h3c-luser-用户名]quit
[h3c]ssh authentication-type default password
[h3c]save
回车
[h3c]public-key local create dsa
回车
[h3c]user-interface vty 0 4
[h3c-ui-vty0-4]authentication-mode scheme
[h3c-ui-vty0-4]protocol inbound ssh
[h3c-ui-vty0-4]quit
[h3c]local-user 用户名
[h3c-luser-用户名]password cipher 密码
[h3c-luser-用户名]service-type ssh
[h3c-luser-用户名]authorization-attribute level 3
[h3c-luser-用户名]quit
[h3c]ssh server enable
[h3c]save
or
回车
[h3c]public-key local create dsa
回车
[h3c]user-interface vty 0 4
[h3c-ui-vty0-4]authentication-mode scheme
[h3c-ui-vty0-4]protocol inbound ssh
[h3c-ui-vty0-4]quit
[h3c]local-user 用户名
[h3c-luser-用户名]password cipher 密码
[h3c-luser-用户名]service-type ssh
[h3c-luser-用户名]service-type ssh level 3
[h3c-luser-用户名]quit
[h3c]ssh authentication-type default password
[h3c]save