Commit 78d810a2 authored by nimrod's avatar nimrod
Browse files

Allow specifying the box IP.

parent 5fddc89a
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -9,7 +9,11 @@ die () {
command -v ip > /dev/null || die "Can't find ip."
alias ssh='ssh -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no" -i "$HOME/.ssh/bullguard-box_rsa" -l root -p 64222'


if [ -n "${1:-}" ]
then
    gateway="$1"
else
    gateway="$(ip neigh show | awk '$5 ~ /^38:b8:eb:5/ {print $1}')"
    [ -n "$gateway" ] || die "Can't find Dojo box IP."
fi
ssh "$gateway"