I'm trying to setup SSH authentication between my VPS and Bitbucket for configure later automatic deployment via Capistrano (for web projects) and Capifony (for Symfony2 projects) so I follow this steps:
- Login in my VPS as root and execude the command
cd ~and that point me at
- Run the command
ssh-keygen -t rsa -C "firstname.lastname@example.org"
- Then I added the key to ssh-agent by running the command
- Finally I try to test if all goes fine by running
ssh -T "email@example.com"@bitbucket.orgbut get this error:
Permission denied (publickey).
What I miss? Any help or advice?