From f1ef09951228b60448a845cdab0b0242ee8ee020 Mon Sep 17 00:00:00 2001 From: Dave Steinberg Date: Wed, 3 Aug 2022 14:42:38 +0000 Subject: [PATCH] make ssh verbose mode dependent on the '-v' cli arg --- bin/ssh-ec2-connect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ssh-ec2-connect b/bin/ssh-ec2-connect index 2f5d9b81f1..11d921fb77 100755 --- a/bin/ssh-ec2-connect +++ b/bin/ssh-ec2-connect @@ -39,7 +39,7 @@ INSTANCE_ID="" PRIVATE_KEY="${SSH_EC2_CONNECT_PRIVATE_KEY}" PUBLIC_KEY="${SSH_EC2_CONNECT_PUBLIC_KEY}" #SSH_OPTS="-o LogLevel=QUIET" -SSH_OPTS="-v" +SSH_OPTS="" SSH_USER="ec2-user" VERBOSE=0 SSM=0 @@ -77,6 +77,7 @@ while getopts e:i:p:r:su:vh-: OPT; do SSM=1 ;; v | verbose) set -x + SSH_OPTS="${SSH_OPTS} -v" VERBOSE=1 ;; h | help) usage ; exit ;;