Forwarding remote X via telnet?
Posted by ntropia on Wed 14 Dec 2005 at 17:59
I need to access from the X display of some remote machines (Irix & Linux) behind a firewall from my laptop running a simple Sarge installation. Normally this would be simple but I only have telnet access and not ssh.
The problem is that (simplifying) I can reach these remote servers via telnet only (it sound weird, but I'm not in the head of firewall admin), and then I make an ssh connection back to my box.
I think that a clue could be to use the remote tunneling option together with X forwarding, but I have no idea on how to set display accordingly on remote machine.
Maybe could be easier using VNC, but I prefer to not install it on servers.
Searching around the web I didn't found much more than basic port forwarding...
Suggestions?
You can ssh back, from behind the firewall but not to. It means that ssh port is blocked on the firewall and telnet port is available, right?
If both are right then get rid of telnet and set up ssh to use telnet port instead (if everything is by default just change port no. from 22 to 23)
Regards,
rjc
[ Parent | Reply to this comment ]
Hi,
I once had a similar problem: I wanted to connect to a computer behind a firewall that blocks everything... Here is what I did: SSH-relay
Now, if I understood you correctly, "remotehost" will be your own box, and "Dad's comp" is the computer behind the firewall. You need a sshd running on the computer behind the firewall! Then you:
sarge_1# telnet behind_firewall behind_firewall# ssh -R 10020:localhost:22 user@sargeIn a new window on sarge, type:
sarge_2# ssh -X -p 10020 user@localhostNow you can use this sarge_2 session for running everything that needs X!
Greets
Ineiti
[ Parent | Reply to this comment ]
To rjc: there are no forward rules on firewall that send ssh incoming connections to the machine I would to reach... The weird thing is that I need to telnet to the firewall and then from there to the machine I need, otherwise I can't see it from outside. Bad fw management at all.
To Ineiti: that's exactly what I would to obtain. It works perfectly! Just... thank you very much!
[ Parent | Reply to this comment ]
I need to have X session (server) to remote Unix (Solaris) , Linux (Debian, RHEL-based) servers from other Windows and Unix/Linux boxes.
How can I do that without using VNC or installing additional software on the hosts?
I just want to use native X server with secure sessions ( in conjunction with SSH ).
Which tools are proper for this job? Please recommend.
Thanks.
[ Parent | Reply to this comment ]