Nate Stephany
2020-01-17 ef0a964544a6570b88c5af63d49ec25e19bc1f75
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% if cloud_provider == 'ec2' %}
Host ec2* *.internal
{% elif cloud_provider == 'osp' %}
Host *.example.com
{% endif %}    
  User {{remote_user}}
{% if use_own_key|bool %}
  IdentityFile ~/.ssh/{{env_authorized_key}}.pem
{% else %}
  IdentityFile ~/.ssh/{{key_name}}.pem
{% endif %}
  ForwardAgent yes
  StrictHostKeyChecking no
  ConnectTimeout 60
  ConnectionAttempts 10
{% endif %}