:mod:`cloudmesh-configuration.cloudmesh.configuration.security.ssh_config` ========================================================================== .. py:module:: cloudmesh-configuration.cloudmesh.configuration.security.ssh_config .. autoapi-nested-parse:: Managing ~/.ssh/config Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: cloudmesh-configuration.cloudmesh.configuration.security.ssh_config.ssh_config .. class:: ssh_config(filename=None) Bases: :class:`object` Managing the config in .ssh .. method:: names(self) The names defined in ~/.ssh/config :return: the names .. method:: load(self) list the hosts defined in the ssh config file .. method:: list(self) list the hosts in the config file :return: .. method:: __str__(self) The string representing the config file :return: the string representation .. method:: status(self) :abstractmethod: executes a test with the given ssh config if a login is possible. TODO: not yet implemented .. method:: login(self, name) login to the host defines in .ssh/config by name :param name: the name of the host as defined in the config file :return: .. method:: execute(self, name, command) execute the command on the named host :param name: the name of the host in config :param command: the command to be executed :return: .. method:: local(self, command) execute the command on the localhost :param command: the command to execute :return: .. method:: username(self, host) returns the username for a given host in the config file :param host: the hostname :return: the username .. method:: generate(self, key='india', host='india.futuresystems.org', username=None, force=False, verbose=False) adds a host to the config file with given parameters. :param key: the key :param host: the host :param username: the username :param force: not used :param verbose: prints debug messages :return: .. data:: hosts