Module for session object representing all connection to remote hosts.
Session object keeps connection objects to remote hosts. Their are associated with particular hostnames. It also caches credentials for them. Connections are made as they are needed. When credentials are missing for connection to be made, the user is asked to supply them from standard input.
Parameters: |
|
---|
Parameters: | hostname (string) – Name of host to get credentials for. |
---|---|
Returns: | Pair of (username, password) for given hostname. If no credentials were given for this host, ('', '') is returned. |
Return type: | tuple |