[aklug] PATH for non-interactive ssh stuff?

From: Christopher Howard <choward@indicium.us>
Date: Sat Aug 14 2010 - 21:29:54 AKDT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Problem: I installed git in my HOME directory on a remote system I don't
have root access to. Works great when I'm logged-in, but when I try to
clone a repo over ssh, I get this: (command is being executed on my
local computer, to clone repo on remote system where I did the git
custom install)

bash: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly

What is happening is, over SSH, it can't find that binary. Its installed
in ~/bin, but that isn't in the PATH:

$ ssh myusername@myremoteserver.com echo \$PATH
/usr/bin:/bin

Adding info to the PATH in .bashrc or .profile on the remote system
doesn't change the PATH displayed when I run the previous command.

- --
Christopher Howard
frigidcode.com
theologia.indicium.us
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxne1IACgkQQ5FLNdi0BcUM9QCfe45HuOCzlyxrKiKbL0DzPiln
45oAoIwh+kIcAIu3/mIms9BwljRfC4VP
=Q2fz
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sat Aug 14 21:27:33 2010

This archive was generated by hypermail 2.1.8 : Sat Aug 14 2010 - 21:27:33 AKDT