Hacker News new | past | comments | ask | show | jobs | submit login

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



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




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: