V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xiangchen2011
V2EX  ›  问与答

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

  •  
  •   xiangchen2011 · 2020-07-19 11:27:55 +08:00 · 1348 次点击
    这是一个创建于 1578 天前的主题,其中的信息可能已经有所发展或是发生改变。

    环境

    • MacBook 13 2017
    • Host MacOS 10.12.6
    • Guest Ubuntu 18.04

    日志

    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
    
    第 1 条附言  ·  2020-07-19 20:51:16 +08:00

    额,我又来了,过了一段时间就不行了

    OpenSSH_7.4p1, LibreSSL 2.5.0
    debug1: Reading configuration data /Users/xiangchen2011/.ssh/config
    debug1: Reading configuration data /etc/ssh/ssh_config
    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
    
    4 条回复    2020-07-20 02:09:49 +08:00
    mnssbe
        1
    mnssbe  
       2020-07-19 11:32:05 +08:00
    日志显示证书认证失败, 证书不存在
    xiangchen2011
        2
    xiangchen2011  
    OP
       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
        3
    xiangchen2011  
    OP
       2020-07-19 20:51:55 +08:00
    Final Shell 却可以正常登陆。。。。迷
    shunconf
        4
    shunconf  
       2020-07-20 02:09:49 +08:00 via Android
    已经弃坑 FinalShell,我的问题和楼主反过来的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5785 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 06:25 · PVG 14:25 · LAX 22:25 · JFK 01:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.