Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-700

SSHD does not suppot agent forwarding for XShell and XAgent

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.7.0
    • None
    • Windows 10 and CentOS 7
      XShell 5.0

    Description

      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.

      Attachments

        1. stacktrace.png
          58 kB
          Li Fangning
        2. SshdTest3.java
          8 kB
          Li Fangning
        3. SshdTest2.java
          9 kB
          Li Fangning
        4. sshd-core.zip
          15 kB
          Li Fangning
        5. log2.txt
          7 kB
          Li Fangning
        6. log1.txt
          20 kB
          Li Fangning
        7. environment.png
          72 kB
          Li Fangning
        8. debug.log
          47 kB
          Li Fangning
        9. block.png
          51 kB
          Li Fangning

        Issue Links

          Activity

            People

              lgoldstein Lyor Goldstein
              lfn Li Fangning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: