ssh tunnel via specific interface

1

Client -ssh-> Server --> Internet

Normally I initiate an ssh tunnel with: ssh -D 1337 admin@nas

On the server I have two interfaces: eth1 and ppp0. Right now it uses eth1 when tunneling, but I'd like to use ppp0 instead.

How do I do this?

FLX

Posted 2012-02-27T22:56:11.823

Reputation: 319

Answers

2

You're looking for -b. But this is pointless unless ppp0 already has a route to nas.

Ignacio Vazquez-Abrams

Posted 2012-02-27T22:56:11.823

Reputation: 100 516