lancegin
V2EX  ›  Vagrant

vagrant 映射外部端口后访问显示"protocol mismatch"是哪里出了问题

  •  
  •   lancegin · Jan 14, 2016 · 4381 views
    This topic created in 3811 days ago, the information mentioned may be changed or developed.

    具体情况是这样:

    在 vagrantfile 中写好了外部端口转发

    config.vm.network "forwarded_port", guest: 80, host: 8080

    vagrant up 的过程中 log 中也打出了相应的两个端口转发

    ==> default: Forwarding ports...
    default: 80 => 8080 (adapter 1)
    default: 22 => 2222 (adapter 1)

    然后问题出现了,当我在本机访问127.0.0.1:8080时,显示无法连接到代理服务器,访问默认的外部转发端口127.0.0.1:2222时,显示

    SSH-2.0-OpenSSH_6.4
    Protocol mismatch.

    有人遇到过这个问题吗?求一下解释啊?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2250 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:05 · PVG 00:05 · LAX 09:05 · JFK 12:05
    ♥ Do have faith in what you're doing.