I\'m trying to connect to connect to amazon EC2 via fabric using the script below. But I\'m met with a problem that I\'m not sure how to solve it.
import os
I had a similar problem and tracked it down to some corruption in my .ssh/known_hosts file.
I thus added to my .bashrc
alias deploy='mv ~/.ssh/known_hosts ~/.ssh/known_hosts.tmp; fab ; mv ~/.ssh/known_hosts.old ~/.ssh/known_hosts'
(obviously putting the right fabric script where
is) and now all works fine when I simply run "deploy"!