Created
July 2, 2018 13:03
-
-
Save krmnn/eca2f9d8dc10ae8744a48cb184d9c0fc to your computer and use it in GitHub Desktop.
vagrant ssh
This file contains hidden or 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
#!/bin/sh | |
PORT=$(vagrant ssh-config | grep Port | grep -o '[0-9]\+') | |
ssh -q \ | |
-o UserKnownHostsFile=/dev/null \ | |
-o StrictHostKeyChecking=no \ | |
-i ~/.vagrant.d/insecure_private_key \ | |
vagrant@localhost \ | |
-p $PORT \ | |
"$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment