ssh tunnel refusing connections with “channel 2: open failed”

Problem solved:

$ ssh -L 7000:127.0.0.1:7000 user@host -N -v -v

…apparently, ‘localhost‘ was not liked by the remote host. Yet, remote /etc/hosts contains:

::1                     localhost localhost.
127.0.0.1               localhost localhost.

while the local network interface is

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33184
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2

Sigh. so much for the bounty of 100rp I put on 🙂

Leave a Comment