sshfs.py 文件源码

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

项目:fs.sshfs 作者: althonos 项目源码 文件源码
def _get_ssh_config(config_path='~/.ssh/config'):
        """Extract the configuration located at ``config_path``.

        Returns:
            paramiko.SSHConfig: the configuration instance.
        """
        ssh_config = paramiko.SSHConfig()
        try:
            with open(os.path.realpath(os.path.expanduser(config_path))) as f:
                ssh_config.parse(f)
        except IOError:
            pass
        return ssh_config
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号