最佳答案
# 生成RSA密鑰對。
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]public-key local create 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...
++++++++++++++++++++++++++++++++++++++
+++++++++++
+++++++++++++
+++
# 生成DSA密鑰對。
[H3C]public-key local create dsa
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...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++*+++++++++++++
# 進入係統視圖,並開啟ssh服務,默認開啟。
<H3C> system-view
[H3C] SSH server enable
# 創建本地賬號abc,密碼為123456,權限級別為network-admin。//如果現場同一個本地用戶既需要通過ssh登錄,又需要console登錄,則服務器類型需要添加 terminal
[H3C] local-user abc
[H3C-luser-abc] password simple 123456
[H3C-luser-abc] service-type ssh terminal
[H3C-luser-abc] authorization-attribute user-role network-admin
[H3C-luser-abc] quit
# 配置VTY接口認證模式為scheme模式(用戶名+密碼認證)。用於ssh登錄
[H3C] line vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme //另兩種認證模式為None(無密碼)和Password(單密碼)
[H3C-ui-vty0-4] quit
其他類似,開啟對應服務
telnet server enable/http enable/https enable
然後用戶service-type ssh terminal這裏再改成對應的
(0)
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
就兩條命令,然後回車自動生成就可以