ssh in OS X with X-tunneling [linux box] [unix linux]

Q: I have a Mac at home that have sshd enabled, so I remotely connect to it with SSH. I also have X11 installed. When you SSH into a standard Unix / X11, you can use the X-or Y-X flag to enable tunnel. When I use this flag when I SSH into my Mac, seems to work (no errors in any case), but I like a program that uses X, it never comes on my screen here. Any insight?


Re:guy hit the nail on the head. I edited /etc/sshd_config to enable X tunneling and set display offset, and it works now.

Thanks!


Re:No display is set and you don't have xterm in your path. Seems to be a larger problem here. See the info below.

OSX stuff (http://www.eecs.wsu.edu/~schneidj/mac-os-x-10.3.html)

EDIT: Well, nevermind. None of that is going to be any help. Sorry.


Re:$ xhost +
access control disabled, clients can connect from any host

$ ssh -X -l (username) (mac's hostname)
Password:
Last login: Thu Aug 10 09:04:12 2006 from (ip-address)
Welcome to Darwin!
adding /sw/bin to PATH…
done

ntp0166@razor:~
$ echo $DISPLAY

ntp0166@razor:~
$ xterm
-bash: xterm: command not found


Re:I'm not sure if ssh's command line options supercede the options in sshd_config, so make sure X11 tunneling is enabled there.

-X is supposed to set $DISPLAY for you.

I know, but stuff happens. ;)


Re:Follow these steps and paste the terminal output:
—————–
xhost +
ssh -X machine
echo $DISPLAY
xterm
—————–

Show us what happens when you run all that in the same terminal


Re:Actually, I just got an error message that says,

X server not responding
: "<ip-address>:0.0"


Re:On the machine I'm on now, $DISPLAY = :0.0
On my mac, $DISPLAY wasn't set, so I set it to (my ip address here):0.0

It still doesn't seem to be working tho.


Re:-X is supposed to set $DISPLAY for you.

Is there another box you can test with, or even try tunneling in the reverse direction?


Related posts

Leave a comment

0 Comments.

Leave a Reply


click to changeSecurity Code

[ Ctrl + Enter ]