H3C开启Ssh

[H3C]ssh server enable                       //开启SSH服务

[H3C]user-interface vty 0 4

[H3C-ui-vty0-4]authentication-mode password //认证模式选择为password,ssh不支持

[H3C-ui-vty0-4]protocol inbound ssh        //配置进站协议,最后想想介绍此命令

% Set user interface protocol failed, please modify the authentication mode

[H3C-ui-vty0-4]authentication-mode scheme  //SSH只支持scheme认证模式

[H3C-ui-vty0-4]protocol inbound ssh

[H3C-ui-vty0-4]quit

[H3C]local-user wnt                    //创建本地用户

[H3C-luser-wnt]password cipher 123

[H3C-luser-wnt]service-type ssh       //服务类型为ssh

[H3C-luser-wnt]level 1

[H3C]super password level 3 cipher 321 //切换命令,并设置密码

[H3C]public-key local create rsa       //生成RSA密钥

The range of public key size is (512 ~ 2048).     

NOTES: If the key modulus is greater than 512,     

It will take a few minutes.    

Press CTRL+C to abort.

Input the bits of the modulus[default = 1024]:

Generating Keys...

..++++++++.+++++++++.+

..++..++..++...++..++...++...++....++..++...++......++.....++...+++++.+++++++++.++++

详细说明protocol inbound 命令

protocol inbound 命令用来指定所在的用户界面所支持的协议。

缺省情况下,系统支持所有的协议,即all--支持 Telnet 和SSH。

有时候创建一次SSH后,是很难彻底删除SSH配置的,原因就在于协议的进站模式

[H3C-ui-vty0-4]protocol inbound ?

  all     All protocols            //支持所有的协议,包括Telnet 和SSH。

  pad     PAD protocol            

  ssh     SSH protocol             //支持SSH 协议。

  telnet  Telnet protocol          //支持Telnet 协议。

                                            要彻底删除ssh进站协议要是all

原文地址:https://www.cnblogs.com/fanweisheng/p/11151954.html