LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-03-2018, 09:29 AM   #1
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Rep: Reputation: 18
rdp with ssh virtualbox


Hi-

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 127.0.0.1:3389 as if it were the remote server.

https://serverfault.com/questions/20...ng-a-linux-box

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 127.0.0.2:3389 with remmina but I guess that is okay.

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

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
This is a good explanation: https://www.saotn.org/tunnel-rdp-through-ssh/
 
1 members found this post helpful.
Old 01-04-2018, 02:21 AM   #3
grahamatlq
Member
 
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 02:32 AM.
 
1 members found this post helpful.
Old 01-04-2018, 03:10 PM   #4
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi-

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. -
mtdew3q
 
  


Reply



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 10:53 PM
[SOLVED] How to enable RDP access to virtualbox OSE Barx Slackware 2 09-06-2011 11:34 AM
How to RDP into virtualbox when no network cable is plugged in? xmrkite Linux - Software 13 12-17-2010 09:46 PM
Trying to connect to a VirtualBox Windows guest through RDP ErEn Linux - Networking 1 04-03-2010 03:45 PM
Is RDP as secure as SSH veeramani Linux - Security 3 03-12-2007 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 AM.

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