Hacker News new | ask | show | jobs
by dekz 5029 days ago
I believe you can setup aliases in ssh_config where you specify the actual hostname and the key to use. Which is what I've used in the past to get the right key to just work with git (and gitolite).

    Host github-yipit-main
      Hostname github.com
      IdentityFile ~/.ssh/yipit_main_rsa
then just go about your merry way of:

    git clone git@github-yipit-main:/yipit/yipit-main.git
1 comments

Not a bad idea since it would make easier to pull changes outside of the automation without needing to specify the GIT_SSH variable.