Last active
August 29, 2015 14:13
-
-
Save baranga/1c7699c763feabfc8b92 to your computer and use it in GitHub Desktop.
use vagrant with empty ssh-agent
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/bash | |
| # start vagrant without connection to ssh-agent to avoid problems regarding | |
| # ed25519 keys | |
| # see https://twitter.com/datagrok/status/552874864969654272 | |
| unset SHH_AGENT_PID | |
| unset SSH_AUTH_SOCK | |
| /usr/bin/vagrant $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SHH_AGENT_PIDshould beSSH_AGENT_PID.$*will break up arguments containing spaces into multiple arguments. Better to use"$@"there (including quotes)alias vagrant='SSH_AGENT_PID= SSH_AUTH_SOCK= /usr/bin/vagrant'in~/.bash_aliasesmight have the same effect as this script