Skip to content

Instantly share code, notes, and snippets.

@manuthu
Created August 17, 2017 11:44
Show Gist options
  • Save manuthu/ba9ac4b178c17f4254d2fb0884b473f4 to your computer and use it in GitHub Desktop.
Save manuthu/ba9ac4b178c17f4254d2fb0884b473f4 to your computer and use it in GitHub Desktop.
vagrant ssh configurations
~: vagrant ssh-config
Host webserver1
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/Mike/projects/sandbox/haproxylab/.vagrant/machines/webserver1/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
Host webserver2
HostName 127.0.0.1
User vagrant
Port 2200
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/Mike/projects/sandbox/haproxylab/.vagrant/machines/webserver2/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
Host haproxy1
HostName 127.0.0.1
User vagrant
Port 2203
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/Mike/projects/sandbox/haproxylab/.vagrant/machines/haproxy1/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
Host haproxy2
HostName 127.0.0.1
User vagrant
Port 2202
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/Mike/projects/sandbox/haproxylab/.vagrant/machines/haproxy2/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment