Unverified Commit 38776824 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #46 from jumpserver/dev

[Bugfix] 支持forward agent
parents 601513db b2cd9d72
......@@ -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