ssh 连接 VMware 虚拟机失败, FinalShell 却可以

2020-07-19 11:27:55 +08:00
 xiangchen2011

环境

日志

OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/xiangchen2011/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug1: Connecting to 192.168.102.134 [192.168.102.134] port 22.
debug1: Connection established.
debug1: identity file /Users/xiangchen2011/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xiangchen2011/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xiangchen2011/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xiangchen2011/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xiangchen2011/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xiangchen2011/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xiangchen2011/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xiangchen2011/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
ssh_exchange_identification: Connection closed by remote host
1351 次点击
所在节点    问与答
4 条回复
mnssbe
2020-07-19 11:32:05 +08:00
日志显示证书认证失败, 证书不存在
xiangchen2011
2020-07-19 11:44:14 +08:00
@mnssbe #1 我并没有配置使用证书认证这个地址啊?新建的虚拟机,home 目录 ssh 的 config 文件里面也没有`*通配符。
检查`/etc/ssh/ssh_config`有下面的配置:
```
# XAuthLocation added by XQuartz ( http://www.xquartz.org)
Host *
XAuthLocation /opt/X11/bin/xauth
```
注释后,问题解决,感谢
xiangchen2011
2020-07-19 20:51:55 +08:00
Final Shell 却可以正常登陆。。。。迷
shunconf
2020-07-20 02:09:49 +08:00
已经弃坑 FinalShell,我的问题和楼主反过来的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/691288

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX