diff --git a/conan/internal/runner/ssh.py b/conan/internal/runner/ssh.py index f91cea4fd08..62a2e7ed0ef 100644 --- a/conan/internal/runner/ssh.py +++ b/conan/internal/runner/ssh.py @@ -332,7 +332,9 @@ def run_interactive_command(self, command: str, is_remote_windows: bool) -> bool channel = self.client.get_transport().open_session() if sys.stdout.isatty(): width, height = os.get_terminal_size() - channel.get_pty(width=width, height=height) + else: + width, height = 80, 24 + channel.get_pty(width=width, height=height) channel.exec_command(command) stdout = channel.makefile("r")