I recently moved my ~/.ssh folder contents to my new laptop in the typical ~/.ssh folder. I was hoping to be able to use “cap deploy” on my new laptop to continue working with a Rails application I already had in production (it’s the command I’d comfortably use on my old laptop). A little more background - the application is on GitHub, and I’ve set up the necessary Rails things on my new computer.
“git push” and “git pull” work fine, but oddly “cap deploy” leads to the “Permission denied (publickey)” error… which I would think shouldn’t happen because the ssh keys should be the same. I can even ssh into the server of my app with no problem on my new comp.
The Rails app is deployed on Linux… Um… oh - please understand that I’ve never actually deployed an app myself with capistrano, i.e. with all the setup with something like Passenger - someone else did it and sort of left me with everything :/. I don’t have a deep understanding of how ssh keys and capistrano and the deployment system work together…
(I hope this is enough information, and help would REALLY be appreciated)