You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/05 08:39:00 UTC
[jira] [Commented] (SSHD-700) SSHD does not suppot agent forwarding
for XShell and XAgent
[ https://issues.apache.org/jira/browse/SSHD-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074426#comment-16074426 ]
ASF GitHub Bot commented on SSHD-700:
-------------------------------------
GitHub user lifangning opened a pull request:
https://github.com/apache/mina-sshd/pull/34
[SSHD-700] Fix the issues of the agent forwarding implementation of IETF.
[SSHD-700] Fix the issues of the agent forwarding implementation of IETF.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lifangning/mina-sshd master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/mina-sshd/pull/34.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #34
----
commit 6806d81e1f8b4c2361f9de50445525c6bea4dd47
Author: Li Fangning <li...@shterm.com>
Date: 2017-07-05T07:47:11Z
[SSHD-700] Fix the issues of the agent forwarding implementation of IETF.
commit 9c430db415d727208a38c98b9d79ef68e429edd7
Author: Li Fangning <li...@shterm.com>
Date: 2017-07-05T08:22:04Z
Move agent forwarding constants to FactoryManager.
----
> SSHD does not suppot agent forwarding for XShell and XAgent
> -----------------------------------------------------------
>
> Key: SSHD-700
> URL: https://issues.apache.org/jira/browse/SSHD-700
> Project: MINA SSHD
> Issue Type: New Feature
> Affects Versions: 1.2.0
> Environment: Windows 10 and CentOS 7
> XShell 5.0
> Reporter: Li Fangning
> Priority: Minor
> Attachments: block.png, debug.log, environment.png, log1.txt, log2.txt, sshd-core.zip, SshdTest2.java, SshdTest3.java, stacktrace.png
>
>
> I use MINA SSHD for both server side and client side:
> SSH client --> MINA SSHD Server - MINA SSHD Client --> Target Linux Server
> I use XShell (http://www.netsarang.com/) as SSH client, and use XAgent with XShell for target server authentication (Public Key Access with Agent Forwarding).
> I have tried PuTTY (with pagent), SecureCRT, and openssh client in linux, they are all passed. But when I try XShell with XAgent, the agent forwarding phase is failed.
> When I check the debug log and source code of MINA SSHD, I find that SSHD only handle the "auth-agent-req@openssh.com" request type (in org.apache.sshd.server.channel.ChannelSession#handleInternalRequest), which is OK for PuTTY, SecureCRT and openssh client. But XShell send a "auth-agent-req" request (without "@openssh.com"), so SSHD not handle the request.
> I have try to change the source code, add "auth-agent-req" to the "switch-case" in handleInternalRequest, but the authentication is blocked.
> I have attached my code, please help me solve the problem.
> Thanks a lot.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)