1

ssh tunnel and rdesktop in one line

view story
linux-howto

http://serverfault.com – To access a windows machine remotely I have to tunnel through a ubuntu server of mine. To setup the tunnel I have ssh -l root -C -L 9999:windowsmachine:23389 myserver Then I have to open another console and run rdesktop -u user -password -f localhost:9999 How can I combine these in a single command or script? (HowTos)