#!/bin/bash

pem="/home/nick/Desktop/Amazon/ami-test/myAmiTestKey.pem"

if [ $# -eq 1 ]; then
	instanceid=$1
	else
	instance=$(cat id.txt);
fi
	echo "about to connect with instance $instanceid"	

	host=$(cat host.txt)
	ssh -i $pem -q ubuntu\@$host

