Tuesday, November 5, 2024

mac – No route to host on iterm2 only

For some unexplained reason, iterm2 cannot connect to (at least some) devices on my local host. I get:

ssh: connect to host 192.168.252.248 port 22: No route to host

Initially I thought this was related to SSH, but ping also doesn’t work:

ping 192.168.252.248
PING 192.168.252.248 (192.168.252.248): 56 data bytes
ping: sendto: No route to host
Request timeout for icmp_seq 0

On the built-in terminal this works as expected and the browser can also connect to the device’s (.248) web inteface.

The first suspect that I thought of was little snitch, but there are clearly no rules that block the traffic from iterm2. I’ve also turned off the network filter just to make sure it isn’t related to that, to no avail. It’s true that this isn’t the same as uninstalling, but I doubt little snitch is the culprit here.

Of course there scope link route to 192.168.252.0/24:

192.168.252.0/24 dev en0 scope link

Although this couldn’t have been the problem, given that it works from other applications.

I don’t have other issues that I know of on iterm2 related to connectivity, I can connect to any other hosts without any issues, including my router’s web interface.

Any ideas what iterm2 might have changed or what settings I could change that could affect this?

I’m using Mac OS Sequoia 15.0.1 and iterm2 3.5.5.

I’ve also uninstalled little snitch completely just to make sure this isn’t interefering, but it didn’t make any difference.

Related Articles

Latest Articles