diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-19 11:31:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-19 11:31:08 -0400 |
commit | 065a3e4d2bfa2340b57830baf4e3899a8bc25217 (patch) | |
tree | 5c3f77e73d6728e504a7c160a56759250470a2c8 /doc/forum/OSX__39__s_default_sshd_behaviour_has_limited_paths_set.mdwn | |
parent | 4395429ab1d8165240c6c76dc90e22fd0c023532 (diff) |
move OSX tips to forum and link to from install/OSX
Diffstat (limited to 'doc/forum/OSX__39__s_default_sshd_behaviour_has_limited_paths_set.mdwn')
-rw-r--r-- | doc/forum/OSX__39__s_default_sshd_behaviour_has_limited_paths_set.mdwn | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/forum/OSX__39__s_default_sshd_behaviour_has_limited_paths_set.mdwn b/doc/forum/OSX__39__s_default_sshd_behaviour_has_limited_paths_set.mdwn new file mode 100644 index 000000000..99b7092c7 --- /dev/null +++ b/doc/forum/OSX__39__s_default_sshd_behaviour_has_limited_paths_set.mdwn @@ -0,0 +1,12 @@ +This is a tip for users who wish to use remotes which are based on OSX systems and have used macports to install some of the required utilities for git-annex to work. + +The default behaviour of OSX's sshd is to have a "highly restricted" restricted environment. The defaults that it allows is + + jtang@x00:~ $ ssh x00 echo \$PATH + /usr/bin:/bin:/usr/sbin:/sbin + +One solution is to enable *PermitUserEnvironment yes* in `/etc/sshd_config` and then in your own `~/.ssh/environment` file you could add something like (the below is an example) + + PATH=/Users/jtang/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin:/Users/jtang/.cabal/bin:/opt/local/libexec/gnubin + +If the above is not done, cloning from the OSX host will fail if git is not installed isn't /usr/bin (which it probably won't be). |