Commit b2cd9d72 authored by ibuler's avatar ibuler

[Bugfix] 支持forward agent

parent 7a247168
......@@ -100,8 +100,9 @@ class SSHServer:
self.dispatch(client)
def dispatch(self, client):
request_type = client.request.type
if 'pty' in request_type or 'x11' in request_type:
supported = {'pty', 'x11', 'forward-agent'}
request_type = set(client.request.type)
if supported & request_type:
logger.info("Request type `pty`, dispatch to interactive mode")
InteractiveServer(self.app, client).interact()
elif 'subsystem' in request_type:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment