ssh.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:cfme-performance 作者: redhat-performance 项目源码 文件源码
def __init__(self, stream_output=False, **connect_kwargs):
        logger.vdebug('ssh.__init__')
        super(SSHClient, self).__init__()
        self._streaming = stream_output

        default_connect_kwargs = {
            'username': cfme_performance['appliance']['ssh']['username'],
            'password': cfme_performance['appliance']['ssh']['password'],
            'hostname': cfme_performance['appliance']['ip_address'],
            'port': 22,
            'timeout': 10,
            'allow_agent': False,
            'look_for_keys': False,
            'gss_auth': False
        }

        # Overlay defaults with any passed-in kwargs and store
        default_connect_kwargs.update(connect_kwargs)
        self._connect_kwargs = default_connect_kwargs
        self.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        _client_session.append(self)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号