Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to set SSH proxy based on network location' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to set SSH proxy based on network location
Authored by: xSmurf on Apr 20, '07 04:03:27AM
That's a very interesting idea. I usually just go with different SSH hosts from ~/.ssh/config. Your method has the advantage of allowing script to use a single connection setting and of automatically detecting proxies. I normally use Corkscrew for tunneling ssh through the proxy. I'm not so sure anymore, but iirc there is an easier method for grabbing the current proxy server. On a side note, netcat is pre-installed by default:
$ whereis nc
/usr/bin/nc

I'll give this a shot when I get a bit of a time!

Funny bit of Unix history...

The nc utility, a "damn useful little backend utility" begun 95/09/15 or thereabouts, as ∗Hobbit∗'s first real stab at some sockets programming. Something that should have and indeed may have existed ten years ago, but never became a standard Unix utility. IMHO, nc could take its place right next to cat, cp, rm, mv, dd, ls, and all those other cryptic and Unix-likethings.
- NC's man page

---
MacBook Pro 2.16Ghz / 2Gb / 100Gb 7200rpm / CD/DVD±RW
PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf

[ Reply to This | # ]