Skip to content

Commit

Permalink
make ssh verbose mode dependent on the '-v' cli arg
Browse files Browse the repository at this point in the history
  • Loading branch information
redterror committed Aug 3, 2022
1 parent fafc228 commit f1ef099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ssh-ec2-connect
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ;;
Expand Down

0 comments on commit f1ef099

Please sign in to comment.