aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rumba/ssh_support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py
index 34e65e0..4fc9b3c 100644
--- a/rumba/ssh_support.py
+++ b/rumba/ssh_support.py
@@ -49,12 +49,12 @@ def execute_commands(testbed, ssh_config, commands, time_out=3):
ssh_client = get_ssh_client()
try:
- #print("Connecting to %s@%s:%s (pwd=%s)" % (testbed.username,
- # ssh_config.hostname, ssh_config.port, testbed.password))
ssh_client.connect(ssh_config.hostname, ssh_config.port,
testbed.username, testbed.password,
look_for_keys=True, timeout=time_out)
for command in commands:
+ print("%s@%s:%s >> %s" % (testbed.username,
+ ssh_config.hostname, ssh_config.port, command))
stdin, stdout, stderr = ssh_client.exec_command(command)
_print_stream(stdout)
_print_stream(stderr)