#!/bin/sh

SSH_TO=$(cat $HOME/.ssh/known_hosts | awk '{ print $1 }' | sed s/,.*// | sort | dmenu $*);

if type sssh > /dev/null
then
    SSH_CMD='sssh'
else
    SSH_CMD='ssh'
fi

if [ $SSH_TO ];
then
    urxvtc -e $SSH_CMD $SSH_TO;
fi