新推出后,与 SP 或 BMC 的 SSH 连接被拒绝 控制器
适用场景
- AFF 型号
- FAS 型号
- ONTAP 9
- 服务处理器 (SP)
- 底板管理控制器( BMC )
- BIOS
问题描述
方案
- 在启动到 ONTAP 之前新安装的系统
- 在启动到 ONTAP 之前更换了主板
- 在 SP 或 BMC 上执行 Wipeclean
症状
如果尝试通过 SSH 连接到方案列表下的控制器的 SP/BMC IP 地址,则会导致以下结果:
ssh -l admin 10.10.10.10
ssh: connect to host 10.10.10.10 port 22: Connection refused
如果在尝试 SSH 的同时连接到控制器的串行控制台,则输出中将显示与以下内容类似的错误:
[200912345678][123:456:easyinitd][WARN][easyinitd_wdt.c:monitor_service:119]sshd is not started yet, might still generate keys
sh: can't kill pid 11111: No such process
network: Secure Port is enabled for [ssh] with 22
Unable to load host key "/etc/ssh/ssh_host_rsa_key": invalid format
Unable to load host key "/etc/ssh/ssh_host_rsa_key": invalid format
Unable to load host key: /etc/ssh/ssh_host_rsa_key
Unable to load host key "/etc/ssh/ssh_host_dsa_key": invalid format
Unable to load host key "/etc/ssh/ssh_host_dsa_key": invalid format
Unable to load host key: /etc/ssh/ssh_host_dsa_key
Unable to load host key "/etc/ssh/ssh_host_ecdsa_256_key": invalid format
Unable to load host key "/etc/ssh/ssh_host_ecdsa_256_key": invalid format
Unable to load host key: /etc/ssh/ssh_host_ecdsa_256_key
Unable to load host key "/etc/ssh/ssh_host_ecdsa_384_key": invalid format
Unable to load host key "/etc/ssh/ssh_host_ecdsa_384_key": invalid format
Unable to load host key: /etc/ssh/ssh_host_ecdsa_384_key
Unable to load host key "/etc/ssh/ssh_host_ecdsa_521_key": invalid format
Unable to load host key "/etc/ssh/ssh_host_ecdsa_521_key": invalid format
Unable to load host key: /etc/ssh/ssh_host_ecdsa_521_key
sshd: no hostkeys available -- exiting.
在尝试连接期间, SecureCRT 等应用程序可能会报告以下情况:
[LOCAL] : RECV: SERVICE_ACCEPT[ssh-userauth] -- OK [LOCAL] : SENT : USERAUTH_REQUEST [none] [LOCAL] : [LOCAL] : RECV: TCP/IP close [LOCAL] : Changing state from STATE_CONNECTION to STATE_CLOSED [LOCAL] : Connected for 5 seconds, 1586 bytes sent, 1079 bytes received [LOCAL] : Stream has closed [CLOSE_TYPE_NONSPECIFIC] : The operation completed successfully.