Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another ssh method' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another ssh method
Authored by: apparissus on Jan 14, '03 12:39:34PM
Instead of typing ssh -X unix.machine.name every time, you can use pico, emacs, etc. and edit ~/.ssh/config. Here's the procedure using pico:

In a terminal:
pico ~/.ssh/config

At the very top of the file, add the following 2 lines:
Host unix.machine.name

ForwardX11 yes

You can also replace "unix.machine.name" with "*" in the Host line to enable it for all hosts you ssh to. This is the way I have mine set up.

[ Reply to This | # ]
2 Steps to enable X11 forwarding
Authored by: harpdog on Jan 14, '03 04:01:13PM

I already have SSH configured securley and use it only with public keys and not passwords.

After insalling apple X11 I just change the line in my sshd_config on my server

to

X11 Forwarding yes


Then on my client machine I engage the tunnel

ssh -2X username@serverip


That is all I needed to do, nothing else.



[ Reply to This | # ]
I mean 3 Steps to enable X11 forwarding
Authored by: harpdog on Jan 14, '03 04:04:57PM

just to add I forgot to mention after change the sshd_config you have to restart SSH

sudo SystemStarter -v restart SSH

:-)



[ Reply to This | # ]