1.失败保存服务端的SSHkey:

Error: Failed to verify the server's public key.

Please run the command "ssh client first-time enable"to enatle the first-time ac

cess function and try again.

解决:在客户端上打开第一次登录功能

2.失败的连接远程的主机:主动关闭

Error: Failed to connect to the remote host .

三次握手没有建立成功

解决:底层通信ping

22端口有没有打开: dis ssh server status

VTY没有允许ssh协议登录

3.远程主机关闭了连接:被动关闭

Info: The connection was closed by the remote host.

解决: local-user <用户名> server-type把默认的http改为ssh

密码输错了

秘钥匹配不成功