Skip to content

Support direct execution of ssh -t user@host docker exec -it xxx bash without falling back to host shell #1724

Open

Description

@xiaoyaolangzhi

This issue requests support for executing docker exec -it directly over SSH with proper TTY allocation, mimicking the behavior of the native command: ssh -t user@host docker exec -it xxx bash.

Activity

  1. changed the title [-]Support direct execution of ssh -t user@host docker exec -it <container> without falling back to host shell[/-] [+]Support direct execution of ssh -t user@host docker exec -it <container> bash without falling back to host shell[/+] on Oct 31, 2025
  2. changed the title [-]Support direct execution of ssh -t user@host docker exec -it <container> bash without falling back to host shell[/-] [+]Support direct execution of ssh -t user@host docker exec -it xxx bash without falling back to host shell[/+] on Oct 31, 2025
  3. Rob-Hague commented on Oct 31, 2025

    @Rob-Hague
    Collaborator

    It should not be too hard, I guess it could be a new method CreateCommandWithTerminal as a mirror of CreateShellStreamNoTerminal with a call like

    if (!_channel.SendPseudoTerminalRequest(terminalName, columns, rows, width, height, terminalModeValues))
    {
    throw new SshException("The pseudo-terminal request was not accepted by the server. Consult the server log for more information.");
    }

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions