[H3C-S5120]user-interface vty 0 4 [H3C-S5120-ui-vty0-4]authentication-mode scheme /*可选none password scheme*/ [H3C-S5120-ui-vty0-4]protocol inbound all /*可选ssh telnet all*/ [H3C-S5120-ui-vty0-4]quit [H3C-S5120]local-user admin [H3C-S5120-luser-admin]password cipher 密码 [H3C-S5120-luser-admin][H3C-S5120]service-type all /*可选ftp lan-access ssh telnet terminal*/ [H3C-S5120-luser-admin]quit [H3C-S5120]ssh user admin service-type all authentication-type password /*设置ssh的认证方式为密码认证*/ [H3C-S5120]save [H3C-S5120]publice-key local create rsa //生成本地RSA密钥对 [H3C-S5120]local-user admin [H3C-S5120-luser-admin]password cipher 密码 [H3C-S5120-luser-admin]service-type all /*可选ftp lan-access ssh telnet terminal*/ [H3C-S5120-luser-admin]quit [H3C-S5120]ssh server enable [H3C-S5120]save
文章来源: H3C S5120配置SSH认证