#!/bin/sh
set -x
# Debian Lenny i386 AMI
#SCRATCHHOST=`euca-describe-instances | grep ami-dcf615b5 | grep running | cut -f 4`
# Custom /scratchbox AMI based on Lenny above
SCRATCHHOST=`euca-describe-instances | grep ami-73876b1a | grep running | cut -f 4`

if [ ! $SCRATCHHOST ] ; then echo "No host available" ; exit ; fi

ssh \
	-i ~/keys/karmic.pem \
	root@$SCRATCHHOST

