Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fabric auto-login in Windows

Relevant question:

  • fabric password

I configured Putty to login with private-public keys (no password) using this guide: http://www.codelathe.com/blog/index.php/2009/02/20/ssh-without-password-using-putty/

It works.

Now I want to run Fabric with no password prompt. This does not work and I get prompted for a password. I'm assuming Paramiko (or some other Fabric dependency) does not find the ppk file. Where do I place the private key file and how do I tell fabric / paramiko about it?

Running on Vista, using Python 2.6.5 and latest Fabric (0.91) / Putty (0.60).

like image 686
Tal Weiss Avatar asked Jul 18 '10 20:07

Tal Weiss


1 Answers

Adding the following to your fabfile.py should work:

env.user = "your_username"
env.key_filename = ["/path/to/keyfile"]

See the fabric docs.

like image 127
Sam Dolan Avatar answered Oct 02 '22 10:10

Sam Dolan