From 10c80a94ad537ce27834227dff0e9adfa8be72d4 Mon Sep 17 00:00:00 2001 From: Patrick Bellasi Date: Tue, 10 Nov 2015 11:27:25 +0000 Subject: [PATCH] ssh: disable commands echo This should help on fixing issue related to echoed commands which make it difficult to parse the commands results. Signed-off-by: Patrick Bellasi --- devlib/utils/ssh.py | 1 + 1 file changed, 1 insertion(+) diff --git a/devlib/utils/ssh.py b/devlib/utils/ssh.py index 2bde1bb..6ad6f9d 100644 --- a/devlib/utils/ssh.py +++ b/devlib/utils/ssh.py @@ -60,6 +60,7 @@ def ssh_get_shell(host, username, password=None, keyfile=None, port=None, timeou conn.setwinsize(500,200) conn.sendline('') conn.prompt() + conn.setecho(False) return conn