- 论坛徽章:
- 0
|
![]()
文件:
H3C_Switch_SSH.rar
大小:
0KB
下载:
下载
前几天在配置一些交换机时发现配置的SSH竟然不能登陆,老是提示什么:
Current FSM is SSH_Main_VersionMatch
网上找了半天也没找出什么结果,最后只有打800,还是800不错,很快就把问题给找出来了,(PS:800开始接电话的那个MM不乖,说的好像很不耐烦似的).
SSH到交换机时,提示协商版本,是没有生成RSA的密钥
[root@main ~]# ssh 192.168.2.163
Received disconnect from 192.168.2.163: 2: The connection is closed by SSH Server
Current FSM is SSH_Main_VersionMatch
[root@main ~]#
在交换机的system-view视图下生成本地密钥,位数为1024
[H3C]rsa local-key-pair create
The local-key-pair will be created.
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]:
Generating keys...
......++++++
........................++++++
..Done!
[H3C]
OK,现在就可以SSH到交换机了.
附H3C交换机SSH的基本配置.
local-user root
password simple 66070511
service-type ssh telnet
level 3
ssh user root authentication-type all
ssh user root service-type stelnet
#
user-interface aux 0
user-interface vty 0 4
authentication-mode scheme
user privilege level 3
protocol inbound ssh
#
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/42230/showart_1282107.html |
|