github.com/m3db/m3@v1.5.0/scripts/vagrant/shared/ssh.sh (about) 1 #!/bin/bash 2 3 set -xe 4 5 if [[ "$USER" == "" ]]; then 6 echo "USER env var not set" 7 exit 1 8 fi 9 if [[ "$SSH_KEY" == "" ]]; then 10 echo "SSH_KEY env var not set" 11 exit 1 12 fi 13 if [[ "$IP_ADDRESS" == "" ]]; then 14 echo "IP_ADDRESS env var not set" 15 exit 1 16 fi 17 18 ssh -i $SSH_KEY $USER@$IP_ADDRESS