早期交换机H3C S3100-26T-SI,Comware Software, Version 3.10, Release 0011,配置ssh时,不支持public-key local create rsa这条命令。请问如何生成RSA密钥对?谢谢!
不需要拓扑图
(0)
最佳答案
也是一样吧
http://www.h3c.com/cn/d_200907/642130_30005_0.htm#_Toc234810656
【命令】
public-key local create { dsa | rsa }
【视图】
系统视图
【参数】
dsa:生成本端DSA密钥对。
rsa:生成本端RSA密钥对。
【描述】
public-key local create命令用来生成本端RSA或DSA密钥对。
需要注意的是:
l 生成服务器端的RSA和DSA密钥对是完成SSH登录的必要操作。
l 输入该命令后,会提示输入密钥对的位数。密钥对的最小长度为512位,最大长度为2048位,缺省长度为1024位。如果已有密钥对存在,则需要用户确认是否进行修改。
l 此命令只需执行一遍,设备重新启动后不必再次执行。
相关配置可参考命令public-key local destroy和display public-key local。
【举例】
# 生成512位RSA密钥对。
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] 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.
Input the bits in the modulus[default = 1024]:512
Generating keys...
..........++++++
.........................++++++
.................................++++++++
....++++++++
.......
#显示本端已生成的RSA密钥对的公钥部分数据。
[Sysname] display public-key local rsa public
=====================================================
Time of Key pair created: 03:14:23 2000/04/06
Key name: Sysname_Host
Key type: RSA encryption Key
=====================================================
Key code:
305C300D06092A864886F70D0101010500034B003048024100D6665EFEC14F48A5B42A413E
2FACCAA9F02C772AEDC4911E76AAEE55BA49C4A0233D2D80504068BD9C892C0DD9EBBBC7EB
8842ED61CDB418A29CA1362BB48C190203010001
=====================================================
Time of Key pair created: 03:14:36 2000/04/06
Key name: Sysname_Server
Key type: RSA encryption Key
=====================================================
Key code:
307C300D06092A864886F70D0101010500036B003068026100A3B63F5B0E5470D9FE200545
0342011FEDE2A924C71EB19E28D257E43EF7E531D7C37FBB157712A2F2AF0F5BAF3E605954
96C5B3EAFF25BFB56F1E1CC7A7004D0FF048654BFEADB21C5AF3E24FB0516393BFEEF65A83
B7416F170886904C8BE30203010001
# 生成512位DSA密钥对。
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] 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.
Input the bits in the modulus[default = 1024]:512
Generating keys...
.++++++++++++++++++++++++++++++++++++++++++++++++++*
........+......+.....+......................................+..+................
.......+..........+..............+.............+...+.....+...............+..+...
...+.................+..........+...+....+.......+.....+............+.........+.
........................+........+..........+..............+.....+...+..........
..............+.........+..........+...........+........+....+..................
.....+++++++++++++++++++++++++++++++++++++++++++++++++++*
......
#显示本端已生成的DSA密钥对的公钥部分数据。
[Sysname]display public-key local dsa public
=====================================================
Time of Key pair created: 03:17:33 2000/04/06
Key name:
Key type: DSA encryption Key
=====================================================
Key code:
3081F03081A806072A8648CE38040130819C0241008DF2A494492276AA3D25759BB06869CB
EAC0D83AFB8D0CF7CBB8324F0D7882E5D0762FC5B7210EAFC2E9ADAC32AB7AAC49693DFBF8
3724C2EC0736EE31C80291021500C773218C737EC8EE993B4F2DED30F48EDACE915F024062
6D027839EA0A13413163A55B4CB500299D5522956CEFCB3BFF10F399CE2C2E71CB9DE5FA24
BABF58E5B79521925C9CC42E9F6F464B088CC572AF53E6D7880203430002406FBDE6C9BD57
8722585CDF4F3BFB31DD739865D1EA0312EDF2BAF4841C0A963E400640E467206817292CDF
E5D91D86FDB9C3A16141E675E6FFC6C2577E660FF1
以上显示信息解释请参见表1-1。
(0)
交换机不支持public-key这条命令
你看下那个链接呢,就是3100的配置指导SSH章节
交换机根本就不支持public-key [3100_2#]p? ping priority priority-trust [3100_2#]
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
交换机根本就不支持public-key [3100_2#]p? ping priority priority-trust [3100_2#]