Search code examples
linuxsshremote-desktopportforwarding

SSH port forwarding


I'm using SSH port forwarding to connect to Windows Remote Desktop from my Linux machine, like this:

ssh -L 50000:192.0.2.10:3389 [email protected]
rdesktop -f localhost:50000 -u user -p password

Now, the first command opens the remote command line on my terminal, so I have to open another terminal to issue the second one. How can I make ssh go on the background so I wouldn't have to open a new terminal?


Solution

  • You can try ssh with -Nf flags. man ssh for more information.