SSH Agent

SSH agent module of parallel-ssh

class pssh.agent.SSHAgent

paramiko.agent.Agent compatible class for programmatically supplying an SSH agent.

add_key(key)

Add key to agent.

Parameters:key (paramiko.pkey.PKey) – Key to add
get_keys()

Return the list of keys available through the SSH agent, if any. If no SSH agent was running (or it couldn’t be contacted), an empty list will be returned.

Returns:a tuple of .AgentKey objects representing keys available on the SSH agent