Re: Unable to clone an ssh repository (with ugly installation-specific workaround)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Elijah Newren <newren@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, Johannes Sixt <j.sixt@...>, Jakub Narebski <jnareb@...>, <git@...>
Date: Wednesday, February 13, 2008 - 10:17 am

On Feb 13, 2008 7:57 AM, Elijah Newren <newren@gmail.com> wrote:

I had this problem as well, and the only solution I found was setting
up my .ssh/environment file.
I guess when you specify a command for ssh, it executes this command
by itself, not within a shell environment.  Usually it is bash that
sources .bashrc and .profile, so you don't get your paths set up.
Unfortunately .ssh/environment is not a scripting environment, so you
have to just specify your full path there, based on what you get when
you echo $PATH from the shell.
Also, this requires putting the following in sshd_config:

PermitUserEnvironment yes

Which, and this is the biter, is not usually a default on most
systems, as far as I can see.. so it could mean bugging the sysadmin
if it's not your machine, which is not always convenient.  Can't see
any alternative though.

Steve
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Unable to clone an ssh repository (with ugly installatio..., Johannes Schindelin, (Tue Feb 12, 6:30 am)
Re: Unable to clone an ssh repository (with ugly installatio..., Stephen Sinclair, (Wed Feb 13, 10:17 am)
[PATCH] upload-pack: Initialize the exec-path., Johannes Sixt, (Tue Feb 12, 7:28 am)
Re: [PATCH] upload-pack: Initialize the exec-path., Johannes Schindelin, (Tue Feb 12, 7:49 am)
Re: [PATCH] upload-pack: Initialize the exec-path., Johannes Schindelin, (Tue Feb 12, 8:45 am)
Re: [PATCH] upload-pack: Initialize the exec-path., Elijah Newren, (Wed Feb 13, 9:00 am)