When I used Ruby on Rails to create sample project on my virtual machine using Ubuntu, I created an SSH key and saved in the folder ~/.ssh/id_rsa.pub
I have also saved this SSH key on Bit Bucket.
But error of invalid key comes when try to push this.
When I use cloud environment for ROR projects, I could push the information of the project to Bit Bucket without any error.
Also in Ubuntu 2 separate SSH keys were created probably when I was in 2 different directories like ~/workspace or ~/workspace/hello_app
I however uploaded both the SSH keys on Bitbucket.
So how to resolve the error when trying to push the info to Bitbucket repository from my virtual machine using Ubuntu.