#!/bin/bash

user=dev
while getopts l: opt
do
	if [ "$opt" = "l" ]
	then
		user="$OPTARG"
		shift
	fi
done
shift $(( $OPTIND - 1 ))

echo $*

for host in $*
do
	xterm -e sh -c "nt $host; exec ssh -l $user $host" &
done
