Skip to content

Instantly share code, notes, and snippets.

@jwhitley
Created February 11, 2015 17:56
Show Gist options
  • Save jwhitley/da7f60eb46c1c7e815c3 to your computer and use it in GitHub Desktop.
Save jwhitley/da7f60eb46c1c7e815c3 to your computer and use it in GitHub Desktop.
Convenience SSH host config for Vagrant VMs
Host vagrant
User vagrant
HostName 127.0.0.1
Port 2222
Compression yes
PubkeyAuthentication yes
LogLevel FATAL
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
IdentitiesOnly yes
IdentityFile ~/.vagrant.d/insecure_private_key
ForwardAgent yes
@jwhitley
Copy link
Author

Add this to your ~/.ssh/config file to enable direct use of ssh, scp, etc. via ssh vagrant <options>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment