[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 18 Jul, 2013, at 3:00 pm, Philip Hudson wrote:
On 18 Jul, 2013, at 2:45 pm, Philip Hudson wrote:On 18 Jul, 2013, at 1:31 am, Kai Hendry wrote:Hi guys, On a related note I've written a simple ssh based port forwarder: http://pi.dabase.com/ It allows you to "phone home" from behind a NAT. Without needing dynamic IP setup or access to your router control panel.Be good if you could review the code. I tried to lock it down as muchas possible.Similar code (since re-factored it to use command=) was used to manage80 odd signage machines across London.I may have misunderstood your use case. Wouldn't autossh do the trick?
Possible optimization (I know, I know): you should be able to replace the chained 'grep' calls with a single 'sed' call.
-- Phil Hudson http://hudson-it.no-ip.biz @UWascalWabbit PGP/GnuPG ID: 0x887DCA63 -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq