![]() |
Ssh and rdesktop
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 |
Re: Ssh and rdesktop
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 localhost:port 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> |
Re: Ssh and rdesktop
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?
|
Re: Ssh and rdesktop
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. ;)
|
Re: Ssh and rdesktop
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?
|
Re: Ssh and rdesktop
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. |
Re: Ssh and rdesktop
Cant make the connection to router, do i have to forward any port in tomato? Thanks for helping
|
Re: Ssh and rdesktop
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? |
Re: Ssh and rdesktop
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.
|
Re: Ssh and rdesktop
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. |
| All times are GMT. The time now is 21:16. |
vBulletin® Version 3.8.8