You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
551 B

#!@l_bash@
8 years ago
# take given hostname
hostname="${1-localhost}"
# loop forever on the terminal
while true; do
# show the usual banner
clear
echo ""
8 years ago
echo "$hostname (GoTTY/SSH)"
echo ""
# provide authentication prompts
read -p "Login: " -e login
if [ ".$login" = . ]; then
sleep 2
continue
fi
# login to localhost
ssh -q \
-o "UserKnownHostsFile /dev/null" \
-o "CheckHostIP no" \
-o "StrictHostKeyChecking no" \
-l "$login" \
8 years ago
$hostname
done