original_docstring: 
  	Attempt to authenticate to the given transport using any of the private
  	keys available from an SSH agent.
  	
docstring: Attempt to authenticate to the given transport using any of the private
  keys available from an SSH agent.
docstring_tokens: Attempt to authenticate to the given transport using any of the private keys available from an SSH agent .
code: def agent_auth(self,transport):
  	"""
  	Attempt to authenticate to the given transport using any of the private
  	keys available from an SSH agent.
  	"""
  	transport = transport if (not self.transport) else self.transport
  	if (transport):
  	    agent = paramiko.Agent()
  	    agent_keys = agent.get_keys()
  	    if len(agent_keys) == 0:
  		return False
  		
  	    for key in agent_keys:
  		print 'Trying ssh-agent key %s' % hexlify(key.get_fingerprint()),
  		try:
  		    transport.auth_publickey(self.username, key)
  		    print '%s ... success!' % (self.username)
  		    return True
  		except paramiko.SSHException:
  		    print '%s ... nope.' % (self.username)
  	else:
  	    print >>sys.stderr, '(%s) :: Transport is not connected.' % (ObjectTypeName.objectSignature(self))
  	return False
code_tokens: def agent_auth ( self , transport ) : transport = transport if ( not self . transport ) else self . transport if ( transport ) : agent = paramiko . Agent ( ) agent_keys = agent . get_keys ( ) if len ( agent_keys ) == 0 : return False for key in agent_keys : print 'Trying ssh-agent key %s' % hexlify ( key . get_fingerprint ( ) ) , try : transport . auth_publickey ( self . username , key ) print '%s ... success!' % ( self . username ) return True except paramiko . SSHException : print '%s ... nope.' % ( self . username ) else : print >> sys . stderr , '(%s) :: Transport is not connected.' % ( ObjectTypeName . objectSignature ( self ) ) return False
short_docstring: Attempt to authenticate to the given transport using any of the private
  keys available from an SSH agent.
short_docstring_tokens: Attempt to authenticate to the given transport using any of the private keys available from an SSH agent .
comment: """
  	Attempt to authenticate to the given transport using any of the private
  	keys available from an SSH agent.
  	"""