isontheline / pro.webssh.net

iOS / iPadOS / macOS SSH Client
https://apps.apple.com/us/app/id497714887
MIT License
317 stars 46 forks source link

No route to host ? #1217

Closed vlsoft closed 1 month ago

vlsoft commented 1 month ago

Bug description

Thank you so much for using WebSSH 27.7.1407 on macOS Version 15.0.1 (assemblage 24A348) 
WebSSH Engine started with success
<EngineLog>
  <Connect_Ssh>
    <EngineVersion>9.5.0.99</EngineVersion>
    <EngineStatus>2</EngineStatus>
    <connectInner>
      <hostname>192.168.20.166</hostname>
      <port>22</port>
      <sshConnect>
        <connectSocket_v2>
          <socketErrno>65</socketErrno>
          <socketError>No route to host</socketError>
        </connectSocket_v2>
        <error>Failed to establish initial TCP/IP connection</error>
        <hostname>192.168.20.166</hostname>
        <port>22</port>
      </sshConnect>
    </connectInner>
    <error>Failed.</error>
  </Connect_Ssh>
</EngineLog>

I am on a MAC in wifi, impossible to connect to my servers locally. on the other hand by going through a VPN it connects. if I use SSH via Terminal, no problem I connect without any problem.

Unable to use WEBSSH locally. Do you have any idea of ​​the problem.

thank you

github-actions[bot] commented 1 month ago

Thank you for your feedback! 🙏 Arnaud (@isontheline) will respond within a few hours. In the meantime, please feel free to add any additional information that may help us resolve or improve WebSSH.

isontheline commented 1 month ago

@vlsoft Hello 👋

Inside WebSSH > mashREPL > what does "ping 192.168.20.166" returns?

vlsoft commented 1 month ago

Hello

here is the result

mashREPL> ping 192.168.20.166 PING 192.168.20.166 (192.168.20.166): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 Request timeout for icmp_seq 2 Request timeout for icmp_seq 3

--- 192.168.20.166 ping statistics --- 5 packets transmitted, 0 packets received, 100.0% packet loss ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host

but in the terminal on mac here is the result:

lionelyoyo@MacBook-Air-15-de-lionel ~ % ping 192.168.20.166 PING 192.168.20.166 (192.168.20.166): 56 data bytes 64 bytes from 192.168.20.166: icmp_seq=0 ttl=64 time=8.186 ms 64 bytes from 192.168.20.166: icmp_seq=1 ttl=64 time=4.302 ms 64 bytes from 192.168.20.166: icmp_seq=2 ttl=64 time=2.181 ms 64 bytes from 192.168.20.166: icmp_seq=3 ttl=64 time=4.378 ms

isontheline commented 1 month ago

Could you post ifconfig please? (From mashREPL)

vlsoft commented 1 month ago

hello :

the result:

mashREPL> ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP> inet 127.0.0.1 netmask 0xff000000 gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 stf0: flags=0<> mtu 1280 anpi0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400 ether 86:b2:22:80:17:c8 anpi1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400 ether 86:b2:22:80:17:c9 en3: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400 ether 86:b2:22:80:17:a8 en4: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400 ether 86:b2:22:80:17:a9 en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 36:1e:d7:a0:e8:80 en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 36:1e:d7:a0:e8:84 bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=63<RXCSUM,TXCSUM,TSO4,TSO6> ether 36:1e:d7:a0:e8:80 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether 74:a6:cd:b2:50:93 inet 192.168.20.36 netmask 0xffffff00 broadcast 192.168.20.255 ap1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether 0a:11:22:53:16:aa awdl0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether 5a:98:9a:b8:6d:63 llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400 ether 5a:98:9a:b8:6d:63 pktap0: flags=1 mtu 0 utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000 utun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000 utun4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 utun5: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380

thanks

isontheline commented 1 month ago

That’s strange :/

en0 seems to have good IP address netmask

isontheline commented 1 month ago

Do you have denied WebSSH to access local network?

vlsoft commented 1 month ago

hello i don't know if i denied WebSSH to access local network. how to check it ? i have the problem in wifi and since i switched to Sequoi/Mac.

isontheline commented 1 month ago

Perhaps here :

image
vlsoft commented 1 month ago

Hello .

Bingo that's exactly the problem. the local network was denied. I reactivated the authorization and it works. Thanks.

isontheline commented 1 month ago

Perfect!

Many thanks for your feedback 🙏

Très belle journée à vous ☀️