Git clone with custom SSH using GIT_SSH error

前端 未结 5 1872
自闭症患者
自闭症患者 2020-11-29 22:18

I am trying to clone a Git repo using a custom SSH command. I set the SSH command in the GIT_SSH environmental variably be running

export GIT_SSH=\"/usr/bin/s

5条回答
  •  渐次进展
    2020-11-29 22:36

    You can supply any keyfile you wish to use with the Git command like this:

    $ PKEY=~/.ssh/keyfile.pem git clone git@github.com:me/repo.git
    

    or this:

    $ git.sh -i ~/.ssh/keyfile.pem clone git@github.com:me/repo.git
    

    I answered the same question here: https://stackoverflow.com/a/15596980

    See link for details.

提交回复
热议问题