SSH session terminates with Arg_IndexOutOfRangeException in Terminal.ExecuteCommand during ParseXtermData
Version: RDM macOS 2026.1.12.2, Devolutions.ProtocolsSharp 2026.4.17.1
Server: OpenSSH 8.9p1 Ubuntu 22.04, xterm-256color
Behavior: Session establishes successfully, runs for varying duration (seconds to minutes), then unexpectedly terminates with the above exception. Server logs show clean Received disconnect: Logout (client-side disconnect). Log excerpt attached.
Stack:
DoShellLoopAsync: Arg_IndexOutOfRangeException
at Devolutions.Protocols.Core.Terminal.ExecuteCommand(ReadOnlySpan`1 data)
at Devolutions.Protocols.Core.Terminal.ParseXtermData(ReadOnlySpan`1 data)
at Devolutions.Protocols.Core.SshClient.DoShellLoopAsync(Channel channel, Upper upper)
Hello,
Thank you for the details and log excerpt.
The logs suggest a possible terminal parsing issue in RDM for macOS / Devolutions.ProtocolsSharp, likely triggered by terminal output, an xterm/ANSI escape sequence, the shell prompt, or startup scripts.
Could you please try changing the terminal type from `xterm-256color` to `xterm` or `vt100` and test again?
You can find this setting in RDM under **File → Settings → Types → Terminal**.
Could you also send us a screenshot of the **Local** section in that Terminal settings page?
We will review this as a possible issue with the terminal parser.
Best regards,
Carl Marien