[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