Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Created June 4, 2010 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilleiguaran/425896 to your computer and use it in GitHub Desktop.
Save guilleiguaran/425896 to your computer and use it in GitHub Desktop.
~ % echo $GIT_SSH
ssh -F /Users/guille/ssh_config
~ % cat ssh_config
# Key for guille
Host github-guille
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Key for mario
Host github-mario
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa.mario
~ % ssh -F ssh_config git@github-mario
PTY allocation request failed on channel 0
ERROR: Hi mariotatis! You've successfully authenticated, but GitHub does not provide shell access
Connection to github.com closed.
~ % ssh -F ssh_config git@github-guille
PTY allocation request failed on channel 0
ERROR: Hi guilleiguaran! You've successfully authenticated, but GitHub does not provide shell access
Connection to github.com closed.
~ % git clone git@github-mario:koombea/rhospike.git
Initialized empty Git repository in /Users/guille/rhospike/.git/
error: cannot run ssh -F /Users/guille/ssh_config: No such file or directory
fatal: unable to fork
~ % git clone git@github-mario:koombea/publisher.git
Initialized empty Git repository in /Users/guille/publisher/.git/
error: cannot run ssh -F /Users/guille/ssh_config: No such file or directory
fatal: unable to fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment