X/ssh by port forwarding?
From: Kevin Yeung (kevincpyeung1974-usenet_at_yahoo.com.sg)
Date: 04/21/04
- Next message: Mark Smulders: "Re: Scancodes, console keycodes and X"
- Previous message: FUNG WAI KEUNG: "Re: Touchpad doesn't work after upgrade to MandrakeLinux 10.0"
- Next in thread: Atro Tossavainen: "Re: X/ssh by port forwarding?"
- Reply: Atro Tossavainen: "Re: X/ssh by port forwarding?"
- Reply: Alex Yung: "Re: X/ssh by port forwarding?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Apr 2004 00:25:50 -0700
Hi all
I understand how the -X flag of ssh allows built-in X tunnelling.
However, for that to happen, the X client machine must be ssh-able.
That means if I want to use my work machine at home, I must be able to
start ssh at home to the work machine. And this is exactly my problem.
My work machine is behind a firewall. I can do the reverse very
nicely, though - i.e., ssh from work to home and start xterm, which is
displayed on the work screen.
So, what I'm thinking is ssh port forwarding using the -L flag. I know
that X listens to port 6000 for :0, 6001 for :1, and so on. But the
following won't work:
home> xhost +work
work> ssh -L 6001:127.0.0.1:6001 home
work> xterm -display :1
xterm Xt error: Can't open display: :1
I checked using netstat to make sure that my work machine is listening
to port 6001. Doing "telnet work 6001" also establishes a valid
connection that gets tunnelled to home:6001.
Could someone tell me what I've done wrong or how I can access my work
machine with X/ssh please?
Thanks in advance.
Regards
Kevin
- Next message: Mark Smulders: "Re: Scancodes, console keycodes and X"
- Previous message: FUNG WAI KEUNG: "Re: Touchpad doesn't work after upgrade to MandrakeLinux 10.0"
- Next in thread: Atro Tossavainen: "Re: X/ssh by port forwarding?"
- Reply: Atro Tossavainen: "Re: X/ssh by port forwarding?"
- Reply: Alex Yung: "Re: X/ssh by port forwarding?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|