#!/usr/bin/env bash
echo "=== Probe deploy key via the github-account SSH alias ==="
git ls-remote git@github-account:2ppaamm/account.git HEAD 2>&1 | head -3
echo ""
echo "=== Also try the bare github.com explicit form ==="
GIT_SSH_COMMAND="ssh -i /root/.ssh/account_deploy -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new -o BatchMode=yes" \
  git ls-remote git@github.com:2ppaamm/account.git HEAD 2>&1 | head -3
