Rather than just root, I changed it to where any user would work. Example: logaa-ron

any-user_fuctionally
Matt Theissen 1 year ago
parent 1a7a4b5e0b
commit 3fb2aa3135

@ -45,8 +45,8 @@ while read host <&3; do
connect_cmd="ssh -t"
host_short=`echo ${host} | awk -F. '{print $1}'`
if echo $zone_xfer | grep $host | grep TXT; then
if [ "`echo $zone_xfer | grep $host | grep TXT | awk '{print $3}'`" = '"logroot"' ]; then
user_name="root"
if [ "`echo $zone_xfer | grep $host | grep TXT | awk '$3 ~ /^"log/ {print $3}'`" ]; then
user_name=$(echo $zone_xfer | grep $host | grep TXT | awk '$3 ~ /^"log/ {print $3}' | sed 's/^"log//' | tr -d '"')
get_hostip ${host}
alias ${host_short}="${connect_cmd} ${user_name}@${host_ip}"
elif [ "`echo $zone_xfer | grep $host | grep TXT | awk '{print $3}'`" = '"windows"' ]; then

Loading…
Cancel
Save