Active Topics

 



Notices


Reply
Thread Tools
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#1
Have established a connection between my router (linksys tomato firmware) and my N900 with ssh no problem here, but now i would like to access a computer with rdesktop but cant get it to work. The connection is not over wlan is this possible? i would like it to work like this: N900 ssh to router launch rdesktop connect to home pc

Rgs Martin

Last edited by salle74; 2010-01-19 at 19:39.
 
Posts: 58 | Thanked: 8 times | Joined on Nov 2009 @ Germany
#2
It is. I logged into my router (also tomato) and created a ssh tunnel that "starts" on localhost and a specified port and "ends" on my windows machine.
I then use rdesktop-cli to connect to localhostort an can manage my windows machine from anywhere.

looks like this:
ssh -L <localport>:<windows_lan_ip>:<rdp_port> root@<router_ip_or_dns>
rdesktop-cli localhost:<localport>
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#3
when i connect to the router i put this in: ssh -p <remote port> root@mydns. Do i need to be root? i dont have to forward rdp port?

Last edited by salle74; 2010-01-19 at 19:50.
 
Posts: 58 | Thanked: 8 times | Joined on Nov 2009 @ Germany
#4
Yeah, but then you have only a normal ssh connection to your router. You can change settings and whatnot, but you cant access your lan machines with rdp just by doing just that. You have to create a tunnel. Thats what the -L option is for. Try as i said, it works for me.
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#5
cant get it to work, my settings in tomato: Remote access ticked, remote port xxxx, local port xx allow password login ticked. Do i have to forward the remoteport or local port to my lan ip?
 
Posts: 58 | Thanked: 8 times | Joined on Nov 2009 @ Germany
#6
Tomato settings seem ok to me.
To Clarify:
ssh -L 5000:192.168.100.100:3389 and after that your normal ssh params.
the L needs to be uppercase.
192.168.100.100 would be the lan ip of the win machine.
what you have now is a tunnel that starts on your n900 at port 5000 and ends on your local machine in your lan. 3389 is the default rdp port.
metaphorically speaking: when you look in the tunnel on your n900 you see the rdp-endport (3389) of your local win machine.
cant explain any better.
make sure you use localhost:5000 (in that example) as parameters for rdesktop-cli.
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#7
Cant make the connection to router, do i have to forward any port in tomato? Thanks for helping
 
Posts: 58 | Thanked: 8 times | Joined on Nov 2009 @ Germany
#8
In your first post you said you could. So i assume you can reach your router via "normal" ssh connection. If that works your router config is ready to go. No changes needed there.

All you do is add the parameters specified above to create the tunnel. It looks excactly the same as a "normal" ssh session. Log in to your router as before. Leave that Terminal open!
Open a new Terminal window and use rdesktop-cli to connect to the the port that you have set on localhost (N900). Have fun with a remote session.

I just tested that again to make sure i don't tell any nonsense. It works!
If it doesn't there has to be a problem elsewhere.
Is the win machine running. Can you ping it from your router using a "normal" ssh session?
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#9
But when i connect to the router i use the remote port in tomato. I can connect to the router using ssh -p <remoteport> root@mydns, i can ping my computer when i am connected to router.
 
Posts: 58 | Thanked: 8 times | Joined on Nov 2009 @ Germany
#10
so just use
ssh -L <any_localport>:<windows_lan_ip>:<rdp_port_of_win_ machine> -p <remoteport> root@mydns
instead and you should be fine.
 

The Following User Says Thank You to Duke For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:18.