I had some difficulties debugging my ssh connection with the server today. I was working on establishing connection between my application server and my bitbucket git repository.
When I checked the connection (using SSH on the server)
ssh -vT git@bitbucket.org
This was part of the debugging message I've received:
"PEM_read_PrivateKey failed"
I was banging my head against the wall for at least 30 minutes trying to find out the right answer to what happened. Finally, I found this article "Amidst a tangled web" that eventually saved my day.
The solution to this dreadful issue was in fact very simple.
I pointed at .pub keyfile instead of a file with the private key using "IndentityFile" in '~/.ssh/config' .
Why do I write this?
Because I've wasted a good couple of minutes on the problem and maybe somebody will find my short note useful. Plus, I think that sharing is always good learning.
No comments:
Post a Comment