You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run a remote SSH command as a background process, it doesn't work. The command returns successfully, but the response is blank and it is as if the command was never run. When I run the same command with Paramiko, it works.
Here's a sample script that connects to the given ip and writes the date to a log file as a background process. If you run it, you'll see it works using Paramiko but no log file is created with JumpSSH.
Once I did this the test script above started working, and the background process successfully created the log file:
-rw-rw-r-- 1 bhoover bhoover 29 Jan 13 12:19 paramiko.log
-rw-rw-r-- 1 bhoover bhoover 29 Jan 13 12:19 jumpssh.log
Any idea why this doesn't work with get_pty() included? The Paramiko docs look like they discourage its use when running a single command with exec_command, but I'm assuming it was included here for a reason.
The text was updated successfully, but these errors were encountered:
When I try to run a remote SSH command as a background process, it doesn't work. The command returns successfully, but the response is blank and it is as if the command was never run. When I run the same command with Paramiko, it works.
Here's a sample script that connects to the given ip and writes the date to a log file as a background process. If you run it, you'll see it works using Paramiko but no log file is created with JumpSSH.
I modified session.py and commented out the
get_pty()
line atJumpSSH/jumpssh/session.py
Line 318 in 51ca8ee
Once I did this the test script above started working, and the background process successfully created the log file:
Any idea why this doesn't work with
get_pty()
included? The Paramiko docs look like they discourage its use when running a single command withexec_command
, but I'm assuming it was included here for a reason.The text was updated successfully, but these errors were encountered: