def key_filenames():
 from fabric.state import env
 keys = env.key_filename
 if (isinstance(env.key_filename, basestring) or (env.key_filename is None)):
  keys = [keys]
 keys = filter(bool, keys)
 conf = ssh_config()
 if ('identityfile' in conf):
  keys.extend(conf['identityfile'])
 return map(os.path.expanduser, keys)

def key_filenames ( ) : from fabric . state import env keys = env . key_filename if ( isinstance ( env . key_filename , basestring ) or ( env . key_filename is None ) ) : keys = [ keys ] keys = filter ( bool , keys ) conf = ssh_config ( ) if ( 'identityfile' in conf ) : keys . extend ( conf [ 'identityfile' ] ) return map ( os . path . expanduser , keys )
returns list of ssh key filenames for the current env .