fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] ssh and known_hosts


From: Tim Arnold
Subject: [Fab-user] ssh and known_hosts
Date: Mon, 27 Aug 2012 17:48:42 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I am getting started with fabric and trying to connect to any machine in 
my known hosts file. I want fabric to figure out that it doesn't need me 
to enter my password. 

My fabfile.py: 

from fabric.api import run, env 
env.disable_known_hosts=False 

def lsfiles(): 
     run('ls -l ~/') 

My console result: 

  fab lsfiles 
No hosts found. Please specify (single) host string for connection: 
localhost 

[localhost] run: ls -l ~/ 
[localhost] Passphrase for private key: 

... file listing follows ... 

How can I get fabric to use my .ssh/known_hosts file? 

system details: 
Python 2.7.3 (default, Aug 22 2012, 13:09:20) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2 

thanks, 
Tim Arnold 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]