sshToHost.sh

#!/bin/bash

# read host list from file
HOSTS=$(cat ~/privat/scripts/hosts.txt)

# get host ip
IP=$(zenity --list --height 400 --column "IP" --column "Name" ${HOSTS})

# to do
if [ "$IP" == "SERVER_IP" ]; then
zenity --entry --entry-text USER_PASS
fi

# connect
gnome-terminal -e "ssh root@${IP}"