Skip to content

Tectia SSH Server on z/OS mainframe #1243

Closed

Description

@mmaguigan

I have seen this mentioned before in the issues, but when connecting to a Tectia SSH server on an IBM mainframe, this error immediately occurs at connection:

System.NotSupportedException: Data longer than 2147483647 is not supported.

I would be happy to investigate patching the issue myself if some initial guidance could be provided.

EDIT:

Stacktrace is below

   at Renci.SshNet.Messages.Transport.IgnoreMessage.LoadData()
   at Renci.SshNet.Common.SshData.LoadInternal(Byte[] value, Int32 offset, Int32 count)
   at Renci.SshNet.Common.SshData.Load(Byte[] data, Int32 offset, Int32 count)
   at Renci.SshNet.Session.LoadMessage(Byte[] data, Int32 offset, Int32 count)
   at Renci.SshNet.Session.ReceiveMessage(Socket socket)
   at Renci.SshNet.Session.MessageListener()
--- End of stack trace from previous location ---
   at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
   at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
   at Renci.SshNet.Session.ConnectAsync(CancellationToken cancellationToken)
   at Renci.SshNet.BaseClient.CreateAndConnectSessionAsync(CancellationToken cancellationToken)
   at Renci.SshNet.BaseClient.ConnectAsync(CancellationToken cancellationToken)
   at UserQuery.Main(), line 17

Activity

  1. added this to the 2023.0.1 milestone on Nov 19, 2023
  2. Rob-Hague commented on Nov 19, 2023

    @Rob-Hague
    Collaborator

    Hi @mmaguigan, thanks for reporting. There was actually already a fix waiting to be merged, which we have done now. You can download the code in this repo and give it a try. Cheers

  3. mmaguigan commented on Nov 20, 2023

    @mmaguigan
    Author

    @Rob-Hague, thanks so much that's terrific. I just tested it out and can confirm that it resolved the connection issue and I was able to list the contents of a directory 😄

  4. Rob-Hague commented on Nov 20, 2023

    @Rob-Hague
    Collaborator

    Glad to hear it 🙂

  5. WojciechNagorski commented on Dec 29, 2023

    @WojciechNagorski
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions