#CanonicalizeHostname yes
#CanonicalDomains elationemr.com internal.elationemr.com unbl.ink onec.me

Host *.local
  IdentityFile ~/.ssh/2022_h2_powellc
    ServerAliveInterval 300
    ServerAliveCountMax 2
    AddKeysToAgent yes
    VerifyHostKeyDNS no

Host github.com
    ServerAliveInterval 300
    ServerAliveCountMax 2
    AddKeysToAgent yes
    IdentityFile ~/.ssh/2022_git

# Home Gitea account:
Host code.unbl.ink git.service
  Port 222
  User git
  IdentityFile ~/.ssh/2022_git
  PreferredAuthentications publickey
  PasswordAuthentication no
  IdentitiesOnly yes

Host gogs*
  Port 222

# Mailinabox uses root by default
Host box.unbl.ink
  IdentityFile ~/.ssh/box_unbl_ink
  User root

Host box.castine.town
  IdentityFile ~/.ssh/box_castine_town
  User root


Host akna.local
  User pi

Host sdf.org
  User secstate

Host otaku.sdf.org
  User secstate

Host sverige.freeshell.org 
  User secstate

Host cosmic.voyage
  User secstate
  IdentityFile ~/.ssh/cosmic.voyage

Host tilde.club
  User secstate
  IdentityFile ~/.ssh/powellc

Host bastion1.local
  User powellc

Host snap-*.local
  User poewllc

# ChicagoVPS
Host pandora.unbl.ink
  IdentityFile ~/.ssh/pandora
  User root

# Rackedge VPS
Host greip.unbl.ink
  IdentityFile ~/.ssh/greip
  User root

# Inside our network, skip strict host key checking
Host *.local *.service
  StrictHostKeyChecking no

# Bare metal hosts
Host gerd.local
  User powellc
Host hati.local
  User powellc
Host ymir.local
  User powellc
Host aegir.local
  User powellc
Host tarqeq.local
  User powellc
Host fenrir.local
  User powellc
Host daphnis.local
  User powellc
Host hyperion.local
  User powellc
Host loge.local
  User powellc
Host dione.local 
  User powellc
Host rhea.local
  User powellc
Host phoebe.local
  User powellc
Host prometheus.local 
  User powellc
Host iapetus.local 
  User powellc
Host titan.local
  User powellc
Host paaliaq.local
  User powellc
Host kiviuq.local
  User powellc
Host kari.local
  User powellc
Host skoll.local
  User powellc
Host atlas.local
  User powellc
Host siarnaq.local
  User powellc
Host skathi.local
  User powellc
Host tarvos.local
  User powellc

# ???
Host telesto.local
  User root
  IdentityFile ~/.ssh/1904_powellc

# PBP uses root user
Host penobscotbaypress.com
  User root

## Jail hosts all need a jump
Host *.local 192.168.1.* *.service
  User root
  IdentityFile ~/.ssh/jails
  Hostname %h
  #ProxyJump bastion.unbl.ink

# 15Five environments
Host *.cloud51
    HostName %h
    User colin
    IdentityFile ~/.ssh/ff_cloud51_rsa
    ProxyJump bastion.cloud51.15five.com
    LocalForward 127.0.0.1:5437 db.mirror0.cloud51:5432
    Port 155
    ServerAliveInterval 30
    ServerAliveCountMax 3
    AddKeysToAgent yes

Host bastion.cloud51.15five.com
    User colin
    IdentityFile ~/.ssh/ff_cloud51_rsa
    Port 155
    AddKeysToAgent yes

Host *.cloud100
    HostName %h
    User colin
    IdentityFile ~/.ssh/ff_cloud100_rsa_2022q3
    ProxyJump bastion.cloud100.15five.com
    LocalForward 127.0.0.1:5437 db.mirror0.cloud100:5432
    Port 155
    ServerAliveInterval 30
    ServerAliveCountMax 3
    AddKeysToAgent yes

Host bastion.cloud100.15five.com
    User colin
    IdentityFile ~/.ssh/ff_cloud100_rsa_2022q3
    Port 155
    AddKeysToAgent yes

Host *.cloud101
    HostName %h
    User colin
    IdentityFile ~/.ssh/ff_cloud101_rsa_2022q3
    ProxyJump bastion.cloud101.15five.com
    LocalForward 127.0.0.1:5437 db.mirror0.cloud101:5432
    Port 155
    ServerAliveInterval 30
    ServerAliveCountMax 3
    AddKeysToAgent yes

Host bastion.cloud101.15five.com
    User colin
    IdentityFile ~/.ssh/ff_cloud101_rsa_2022q3
    Port 155
    AddKeysToAgent yes
