https://bugzilla.mindrot.org/show_bug.cgi?id=1916

Darren Tucker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Darren Tucker <[email protected]> 2011-08-12 10:25:57 EST 
---
I've used a ProxyCommand to do this kind of thing, eg:

Host example1
  ProxyCommand ~/bin/multiconnect %h %p

then have whatever logic you like in the shell script and use netcat or
similar to actually make the connection:

#!/bin/sh
if ifconfig eth0 | grep -q '192\.168\.0\.'
then
  exec nc 192.168.0.1 %p
else
  exec nc example1.no-ip.org %p
fi

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to