From 631cfb6939cfe846b63c30c1d39a56ece9740e19 Mon Sep 17 00:00:00 2001
From: Jan Janssen <janssen@lanl.gov>
Date: Fri, 7 Jul 2023 19:45:31 -0600
Subject: [PATCH] Enable remote command

---
 pysqa/ext/remote.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pysqa/ext/remote.py b/pysqa/ext/remote.py
index c1e8150d..41b03bb2 100644
--- a/pysqa/ext/remote.py
+++ b/pysqa/ext/remote.py
@@ -240,7 +240,7 @@ def _execute_remote_command(self, command):
             ssh = self._ssh_connection
         else:
             ssh = self._open_ssh_connection()
-        stdin, stdout, stderr = ssh.exec_command(command)
+        stdin, stdout, stderr = ssh.exec_command(command=command, get_pty=True)
         warnings.warn(stderr.read().decode())
         output = stdout.read().decode()
         if not self._ssh_continous_connection: