Skip to content
Snippets Groups Projects
Commit 22ca52ef authored by nimrod's avatar nimrod
Browse files

Allow specifying the box IP.

parent 302094e1
Branches
No related tags found
No related merge requests found
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment