ssh: close stdin when running subshell

This commit is contained in:
Roman Zeyde
2017-08-31 17:00:27 +03:00
parent 7598f6cdbf
commit 0b829636e1
2 changed files with 2 additions and 1 deletions

View File

@@ -210,6 +210,7 @@ def main(device_type):
use_shell = bool(args.shell)
if use_shell:
command = os.environ['SHELL']
sys.stdin.close()
conn = JustInTimeConnection(
conn_factory=lambda: client.Client(device_type()),