Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save asaushkin/0e6748c4ffcbcab8f538 to your computer and use it in GitHub Desktop.
Save asaushkin/0e6748c4ffcbcab8f538 to your computer and use it in GitHub Desktop.
vagrant ssh-config | sed -n "s/IdentityFile//gp" | head -n 1 | xargs ssh-add
export FLEETCTL_TUNNEL="$(vagrant ssh-config | sed -n "s/[ ]*HostName[ ]*//gp" | head -n 1):$(vagrant ssh-config | sed -n "s/[ ]*Port[ ]*//gp" | head -n 1)"
# Или сделать так
#ssh-add /home/ags/.vagrant.d/insecure_private_key
#export FLEETCTL_TUNNEL=127.0.0.1:2222
#export ETCDCTL_PEERS="http://172.17.8.103:4001"
echo $FLEETCTL_TUNNEL
fleetctl list-machines
# Логиниться так:
# vagrant ssh core-01 -- -A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment