I use an ssh-tunnel from a PC on a local network behind a gateway to
another PC on the internet. Say the PC behind the gateway is LOCAL
and the other internet PC is REMOTE.

On LOCAL I do as a regular user:

  $ ssh -2 -N -f -R 2201: REMOTE

Then on REMOTE I can then do:

  $ ssh -p 2201

All this works fine for login from REMOTE to LOCAL, bypassing the gateway.


I then want the following to work.

On REMOTE I do, as root:
   # ifconfig lo0 alias
   # ifconfig lo0
   lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet netmask 0xff000000
        inet netmask 0xff000000

To double check, I verified that I can login to myself on REMOTE:
   $ ssh REMOTE

On REMOTE I then want to login to LOCAL, as regular user:
   $ ssh -p 2201
   ssh: connect to host port 2201: Connection refused

Can somebody explain to me why the ssh-tunnel does not work this way?


_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to