Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-03-2018, 10:29 AM   #1
Registered: Mar 2006
Location: upstate NY
Distribution: fedora XFCE 24
Posts: 398

Rep: Reputation: 17
rdp with ssh virtualbox


I worked on getting rdp to work with putty and remmina a while ago. I got side tracked because of holidays and a cold.

I use windows host and linux guest with bridged adapter in virtualbox.

" How do I establish a permanent RDP tunnel through ssh on the linux box? "

At the following link is the poster oneiroi right?

ssh -L 3389:<ip of windows server>:3389 <ip of ssh server> -l <ssh user> -N

Assuming 3389 is the port your RDP is running on AND the ssh server has access to said port, you can then connect to as if it were the remote server.

I can run this example in cygwin with putty and remmina. Or I can run it from command-line like in the example and connect from remmina.

Just not very confident that the rdp session running through ssh tunnel. I'm not very good at networking.

Please let me know if this is a good example of rdp over ssh tunnel and|or if there is a good way to verify that is actually going on. BTW I had to use with remmina but I guess that is okay.

thx. for rendering any assistance!
Old 01-04-2018, 01:11 AM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,514

Rep: Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000
This is a good explanation:
1 members found this post helpful.
Old 01-04-2018, 03:21 AM   #3
Registered: Dec 2006
Posts: 40

Rep: Reputation: 18
Why don't you just remote desktop into the linux box directly?

mstsc.exe /v:<ip of linux box>

If you want to create a tunnel you first need to check you are not running the "terminal services server" on windows because it would block 3389.

Then do

ssh -L 3389:localhost:3389 <ip of ssh server> -l <ssh user> -f4gN
mstsc.exe /v:localhost

You can use alternative port if you have local terminal services running:

ssh -L 13389:localhost:3389 <ip of ssh server> -l <ssh user> -f4gN
mstsc.exe /v:localhost:13389

Last edited by grahamatlq; 01-04-2018 at 03:32 AM.
1 members found this post helpful.
Old 01-04-2018, 04:10 PM   #4
Registered: Mar 2006
Location: upstate NY
Distribution: fedora XFCE 24
Posts: 398

Original Poster
Rep: Reputation: 17

THX. for the cool posts AM and grahamatlq!

AM - According to the link you gave me, I picked the instructions up from somewhere else. So unwittingly I was following nested tutorials with the same technique at different forums.

I can check out grahamatlq technique on a later day. It is interesting and worth a look. Nowhere in my travels did I see that approach.

Back to nursing my cold. Have a very cool weekend.

thx. -


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rdp|ssh with virtualbox mtdew3q Linux - Server 2 12-11-2017 11:53 PM
[SOLVED] How to enable RDP access to virtualbox OSE Barx Slackware 2 09-06-2011 12:34 PM
How to RDP into virtualbox when no network cable is plugged in? xmrkite Linux - Software 13 12-17-2010 10:46 PM
Trying to connect to a VirtualBox Windows guest through RDP ErEn Linux - Networking 1 04-03-2010 04:45 PM
Is RDP as secure as SSH veeramani Linux - Security 3 03-12-2007 07:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration