Skip to content

Instantly share code, notes, and snippets.

@awilliams
Created June 12, 2015 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awilliams/551d8282e8b66e6f8c15 to your computer and use it in GitHub Desktop.
Save awilliams/551d8282e8b66e6f8c15 to your computer and use it in GitHub Desktop.
vagrant ssh config
# Add this to ~/.ssh/config, changing the Host and IdentifyFile definitions as needed.
# Run `vagrant ssh-config` for more info.
Host devbox
HostName 127.0.0.1
User vagrant
Port 2222
ForwardAgent yes
IdentityFile ~/vms/devbox/.vagrant/machines/default/virtualbox/private_key
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentitiesOnly yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment