Rather than reinvent the wheel, make use of the built in SSH functions to tunnel your requests (if you need the redirection)If you need a better look, I've always been a big fan of the "Pro OpenSSH" book over the other documentation.Code:ssh -NL 4444:192.168.1.23:6666 root@192.168.96.93
If you can't figure out how to script commands through ssh, you are doing something very wrong
That "code" was tested on a DD-WRT WRT54GL


