Benches macOS

4

ssh -w yields "bad tun device" means what?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I am unable to to ssh to my home computer from my office(Linux) after upgrading to Leopard(clean install - all updates). I use an sshd_config file edited to 1 user/no root. Leopard firewall is set to the allow certain apps setting (but i couldn't find anything specific for ssh) and the Sharing - Remote login preference is checked and set to only allow the one user. I was able to ssh using Tiger and nothing has changed other than the upgrade.

All i get is "connection timed out"

I tried "ssh -w user@homecomputer" and got "bad tun device" - what does it mean?

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    BobHarris

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    So why are you using -w ?


    -w localtun[:remotetun]
    Requests tunnel device forwarding with the specified tun(4)
    devices between the client (local_tun) and the server
    (remote_tun).
    The devices may be specified by numerical ID or the keyword
    ``any'', which uses the next available tunnel device. If
    remote_tun is not specified, it defaults to ``any''. See also
    the Tunnel and TunnelDevice directives in ssh_config(5). If the
    Tunnel directive is unset, it is set to the default tunnel mode,
    which is ``point-to-point''.

    Or did you really mean -v -v (eg -vv which is different from -w).

  2. 0

    rjcchan

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    probably because i can't always read my own handwriting. I was skimming through a large number of threads and taking notes.

  3. 0

    BobHarris

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    It would be nice to see the ssh -v -v -v output (or at least you should look at it).

    If you have another system where ssh does work, capture its -v -v -v output and compare and contrast the working against the failing and see where thing change.

  4. 0

    rjcchan

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thank you for paying attention to this. i ran shh -v -v -v and it stopped on the third entry --as soon as a connection was attempted to my home computer. So I opened the firewall (allow all services) and removed all user restrictions on ssh and rebooted.

    ssh now works and i can work backwards.