I have this setup in .ssh/config. Every time I do a git push it will says permission deny.
My 1st question is that what exactly is Host and HostName?
2nd question is that if I change bitbucket_personal to bitbucket.org and bitbucket_work to bitbucket.org. bitbucket_work (the last one in config) will always work, no permission denied issue. Is it a way to make the following config work?
Host bitbucket_personal
HostName bitbucket.org
User kenpeter
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Host bitbucket_work
HostName bitbucket.org
User kenpeter_work
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_work