Leopard and Capistrano 1.4.1 Recipes
Posted by Josh Nesbitt
Recently whilst installing a new Rails stack on Leopard i ran into some issues with a Capistrano 1.4.1 recipe. I was getting the following error:
"SSH host key authentication failed"It took me a while to come to the conclusion that the problem was some strange incompatibility with Leopard and Capistrano 1.4.1 (more to the point, one of the dependent Gems, NetSSH). It seemed to be a conflict with how Leopard and NetSSH store SSH known host keys (but i didn”t have time to check this out properly).
To fix this problem, you have to uninstall Capistrano (or maybe just the dependent gem, NetSSH, but i did all versions just to ensure that a newer version wasn”t taking precedence over an older version, this included the ”cap” and ”capify” links).
I also uninstalled the other dependencies, just to make sure. The correct stack looks something like:
capistrano (1.4.1)
net-scp (1.0.0)
net-sftp (1.1.1, 1.1.0)
net-ssh (1.1.2, 1.0.10)
net-ssh-gateway (1.0.0)Now i just have to update all my recipes to roll on Capistrano 2.x. Hopes this saves someone some time!
