Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何让结构使用ssh主控主控配置?_Python_Linux_Ssh_Fabric_Openssh - Fatal编程技术网

Python 如何让结构使用ssh主控主控配置?

Python 如何让结构使用ssh主控主控配置?,python,linux,ssh,fabric,openssh,Python,Linux,Ssh,Fabric,Openssh,我跟随本文介绍了ssh配置的更改 使用ssh myserver时,我可以快速连接到我的服务器, 但是结构不使用这些配置,连接时仍然非常慢 在我添加了以下代码之后,问题仍然没有得到解决 env.use_ssh_config=True env.ssh_config_path='/etc/ssh/ssh_config'

我跟随本文介绍了ssh配置的更改

使用ssh myserver时,我可以快速连接到我的服务器, 但是结构不使用这些配置,连接时仍然非常慢

在我添加了以下代码之后,问题仍然没有得到解决

env.use_ssh_config=True 
env.ssh_config_path='/etc/ssh/ssh_config'