Last active
March 26, 2016 20:37
-
-
Save asaushkin/0e6748c4ffcbcab8f538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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