Paramiko.ssh_exception.SSHException:频道已关闭

时间:2015-04-17 14:05:15

标签: python ssh paramiko openflow ryu

我刚刚遇到连接SDN交换机pica 8 3290与ryu的配置库和python paramiko库的问题。

这是追溯消息:

=================================================================================
xdn41o71:ryu Mac$ sudo ryu-manager ryu/app/of_config.py
Password:
loading app ryu/app/of_config.py
Connected (version 2.0, client OpenSSH_6.0p1)
Authentication (password) successful!
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/ryu-manager", line 9, in <module>
    load_entry_point('ryu==3.20.1', 'console_scripts', 'ryu-manager')()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ryu/cmd/manager.py", line 88, in main
    app_mgr.load_apps(app_lists)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ryu/base/app_manager.py", line 390, in load_apps
    cls = self.load_app(app_cls_name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ryu/base/app_manager.py", line 366, in load_app
    mod = utils.import_module(name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ryu/utils.py", line 91, in import_module
    __import__(name)
  File "/Users/Mac/ryu/ryu/app/of_config.py", line 9, in <module>
    unknown_host_cb=lambda host, fingeprint: True)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ryu/lib/of_config/capable_switch.py", line 50, in __init__
    self.netconf = connect(*self._connect_args, **self._connect_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ryu/contrib/ncclient/manager.py", line 67, in connect_ssh
    session.connect(*args, **kwds)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ryu/contrib/ncclient/transport/ssh.py", line 208, in connect
    c.invoke_subsystem("netconf")
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/channel.py", line 60, in _check
    return func(self, *args, **kwds)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/channel.py", line 254, in invoke_subsystem
    self._wait_for_event()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/channel.py", line 1086, in _wait_for_event
    raise e
paramiko.ssh_exception.SSHException: Channel closed.
===============================================================================

我用google搜索了问题,paramiko.ssh_exception.SSHException:频道已关闭。, 但是,我的问题没有任何适当的解决方案。

任何人都可以给我一些指示来解决这个问题吗?

0 个答案:

没有答案