#!/bin/sh

SSH=/usr/bin/ssh

echo -n "Enter a host to which to connect, or just press ENTER to exit: "

read HOST
if [ X$HOST = "X" ]; then
	exit
else
        echo "Enter a user name to use on the remote host, or just press ENTER to use your"
        echo -n "current login name: "

	read NAME
	if [ X$NAME = "X" ]; then
		exec $SSH $HOST
	else
		exec $SSH -l $NAME $HOST
	fi
fi
