Merge "Force tty (stdin) closed on ssh commands."
This commit is contained in:
commit
2091fe71ed
|
@ -77,6 +77,7 @@ def ssh(uri, cmd, screen_output=False, silent=True, agent_forwarding=False):
|
||||||
port = 22
|
port = 22
|
||||||
## construct flags
|
## construct flags
|
||||||
flags = ['-T']
|
flags = ['-T']
|
||||||
|
flags.append('-n') # prevent read blocking on tty (stdin)
|
||||||
if silent:
|
if silent:
|
||||||
flags.append('-o StrictHostKeyChecking=no')
|
flags.append('-o StrictHostKeyChecking=no')
|
||||||
flags.append('-o UserKnownHostsFile=/dev/null')
|
flags.append('-o UserKnownHostsFile=/dev/null')
|
||||||
|
|
Loading…
Reference in New Issue