Install the OpenSSL on Debian based systems
sudo apt-get install openssl| function fixssh { | |
| local hostname="" | |
| local ip="" | |
| for arg in $@; do | |
| local hostout=$(host "$arg" 2>/dev/null) | |
| if [ $? -eq 0 ]; then | |
| local out=$(echo "$hostout" | grep -o "has address .*$" | grep -Eo "[0-9.]{7,15}") | |
| if [ $? -eq 0 ]; then | |
| local hostname="$arg" | |
| local ip="$out" |