Agent Zero AI framework
ssh: disable systemd OSC metadata
linuztx201eff0b9e71
diff --git a/python/helpers/shell_ssh.py b/python/helpers/shell_ssh.pyindex 77ca5341d..bafcdbea0 100644--- a/python/helpers/shell_ssh.py+++ b/python/helpers/shell_ssh.py@@ -62,7 +62,8 @@ class SSHInteractiveSession:# invoke interactive shellself.shell = self.client.invoke_shell(width=100, height=50)- initial_command = "stty -echo"+ # disable systemd/OSC prompt metadata and disable local echo+ initial_command = "unset PROMPT_COMMAND PS0; stty -echo"if self.cwd:initial_command = f"cd {self.cwd}; {initial_command}"self.shell.send(f"{initial_command}\n".encode())