Re: ssh username environment variable
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jan 8, 2010, 20:29 UTC
- Message-ID
- <20100108202958.GL32155@spearce.org>
- In-Reply-To
- <a038bef51001081224l33164526y51e5ca064b82b73a@mail.gmail.com>
Chris Packham <judge.packham@gmail.com> wrote:
> Just wondering if there is an environment variable I can use to tell > git or ssh what user name to use for the ssh transport?
No. But you can hack around it:
cat >$HOME/bin/git-ssh #!/bin/sh ssh -l $GIT_SSH_USER "$@" ^D
GIT_SSH=$HOME/bin/git-ssh GIT_SSH_USER=myname git clone ...
-- Shawn.