Merge "Force tty (stdin) closed on ssh commands."

This commit is contained in:
Jenkins 2013-09-05 17:06:02 +00:00 committed by Gerrit Code Review
commit 2091fe71ed
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ def ssh(uri, cmd, screen_output=False, silent=True, agent_forwarding=False):
port = 22
## construct flags
flags = ['-T']
flags.append('-n') # prevent read blocking on tty (stdin)
if silent:
flags.append('-o StrictHostKeyChecking=no')
flags.append('-o UserKnownHostsFile=/dev/null')