Host *.amazonaws.com
    User ubuntu
    IdentityFile ~/.ssh/ops.pem

Host vagrant
    HostName localhost
    Port 2222
    User vagrant
    StrictHostKeyChecking no
    IdentityFile ~/.vagrant.d/insecure_private_key

<% @config['hosts'].each do |host| %>
Host <%= host['host'] %>
    HostName <%= host['hostname'] %>
    User <%= host['user'].nil? ? @config['default']['user'] : host['user'] %>
    IdentityFile <%= host['identityfile'].nil? ? @config['default']['identityfile'] : host['identityfile'] %>
<% end %>

Host *.amazonaws.com
    User ubuntu
    IdentityFile ~/.ssh/ops.pem

Host vagrant
    HostName localhost
    Port 2222
    User vagrant
    StrictHostKeyChecking no
    IdentityFile ~/.vagrant.d/insecure_private_key

<% @config['hosts'].each do |host| %>
Host <%= host['host'] %>
    HostName <%= host['hostname'] %>
    <% if host['port'] %>
    Port <%= host['port'] %>
    <% end %>
    User <%= host['user'].nil? ? @config['default']['user'] : host['user'] %>
    IdentityFile <%= host['identityfile'].nil? ? @config['default']['identityfile'] : host['identityfile'] %>
<% end %>

Allow the ssh port to be set
Allow the ssh port to be set
