On Sun, May 4, 2014 at 11:04 PM, Thomas Ferris Nicolaisen
<tfn...@gmail.com> wrote:
> On Sunday, May 4, 2014 10:08:48 PM UTC+2, Thomas Ferris Nicolaisen wrote:
>>
>>
>> Any wild ideas on how I could possibly get both working over SSH?
>
>
> Got it: The trick is to configure SSH aliases as described here:
>
> http://stackoverflow.com/questions/7927750/specify-an-ssh-key-for-git-push-without-using-ssh-config
>
> So now I've got a host alias bitbucket.org.private - which is also
> configured to use my private key. Note that I add to do `ssh-add
> private.id_rsa` before the new key would start working.
>
> This technique is even described in the BitBucket docs, so that's RTFM for
> me:
> https://confluence.atlassian.com/pages/viewpage.action?pageId=271943168#ConfiguremultipleSSHidentitiesforGitBash,MacOSX,&Linux-ClonearepositoryusingSSHandyouraliasconfiguration

And it took you only an hour to find it ;)

No, seriously, that is a very neat trick; using different aliases for
the same machine.  I use it extensively for things like using
different SSH keys / port forwardings / etc.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to