Fabric is awesome tool, but it have very slow authorization on server with private keys by default.

Looks like fabric have some slow checks of known_hosts user file. You can avoid this. Also this can fix error in checking server fingerprint with services like amazon EC when you reinstall your server.

http://docs.fabfile.org/en/latest/usage/env.html#disable-known-hosts

You can fix this simple and have fabric speedup like a charm :)

Just take a look in highlighted line on peace of environment setup code.

    env.disable_known_hosts = True
    env.key_filename = [os.path.join(os.environ['HOME'], '.ssh','id_rsa')]

Enjoy!

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>