opsmanapi.py 文件源码

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

项目:cfawsinit 作者: mandarjog 项目源码 文件源码
def sshclient(self):
        if self._sshclient is None:
            host = urlparse.urlparse(self.url).netloc
            clnt = paramiko.SSHClient()
            clnt.set_missing_host_key_policy(paramiko.WarningPolicy())
            clnt.connect(
                host, username="ubuntu",
                key_filename=self.opts['ssh_private_key_path'])
            self._sshclient = clnt

        return self._sshclient
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号