一.設備作為 SSH 服務器端設置
# 生成 RSA 密鑰對。
<H3C>system-view // 進入系統(tǒng)視圖
System View: return to User View with Ctrl+Z.
[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...
++++++++++++++++++++++++++++++++++++++
+++++++++++
+++++++++++++
+++
# 生成 DSA 密鑰對。
[H3C]public-key local create dsa // 生成 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]ssh server enable // 啟動 SSH 服務器
Info: Enable SSH server.
三.設置 SSH 客戶端登錄用戶界面的認證方式為 scheme 方式。
[H3C]line vty 0 4 // 進入 VTY 0 ~ 4 用戶界面視圖
[H3C-line-vty0-4]authentication-mode scheme // 認證方式為 scheme 用戶名 + 密碼的
方式
# 設置 Switch 上遠程用戶登錄協(xié)議為 SSH。
[H3C-line-vty0-4]protocol inbound ssh // 設置遠程用戶登錄協(xié)議為 SSH
[H3C-line-vty0-4]quit // 退出當前視圖
四.創(chuàng)建本地用戶,密碼,并設置用戶訪問的命令級別為 network-admin。
[H3C]local-user ABC// 創(chuàng)建本地用戶 ABC
[H3C-luser-ABC]password simple 123456?// 密碼為 123456
[H3C-luser-ABC]service-type ssh // 服務類型為 ssh
[H3C-luser-ABC]authorization-attribute user-role network-admin // 權
限級別為管理員權限
[H3C-luser-ABC]quit // 退出當前視圖
五.保存配置
[H3C]save force // 保存配置
?文章來源:http://www.zghlxwxcb.cn/news/detail-460926.html
【完】文章來源地址http://www.zghlxwxcb.cn/news/detail-460926.html
到了這里,關于H3C 交換機配置SSH的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!