Monday, March 15, 2010

Mac OS X, ssh and X11 forwarding

Well it was my turn to go through this struggle. Once you have problems you'll see that so many others have had problems with getting ssh public key ("no password") connections and then X11 forwarding working. Next I'll get port forwarding through ssh working. That can be the subject of a later post.

Here are my notes for problem solving.

References
Troubleshooting
Permissions
  • Permission on ~/.ssh/authorized_keys OR ~/.ssh/authorized_keys2 needs to be 0600
Found at http://ubuntuforums.org/archive/index.php/t-477374.html, http://www.macosxhints.com/article.php?story=20080424055927442
  • Permission on ~/.ssh needs to be 0700
Found at http://sial.org/howto/openssh/publickey-auth/problems

X11 forwarding
  • I had to remove the references in home.bashrc that sets $DISPLAY as the sshd does that
Found at http://dyhr.com/2009/09/05/how-to-enable-x11-forwarding-with-ssh-on-mac-os-x-leopard/

No comments:

Post a Comment