# vim: nospell
# Global Rules
Host * !*.github.com !github.com
    # IdentityFile %d/.ssh/id_ed25519_sk_rk_yk20572395
    IdentityFile %d/.ssh/id_ed25519
    IdentityFile %d/.ssh/id_rsa


# Github SSH adapter for restricted networks
Host github.com gist.github.com
    HostName ssh.github.com
    Port 443
    # This solves a VSCode bug
    IdentityFile %d/.ssh/id_ed25519
    IdentityFile %d/.ssh/id_ed25519_sk_rk_yk20572395

# Default to myself when accessing my own machines
Host ewpratten-*
    User ewpratten

# VPN
Host *.pratten.ca
    User evan
Host *.vpn
    ProxyJump vpn.pratten.ca

# Home network
Host unifi
    HostName unifi.home
    User root
    PreferredAuthentications password
    PubkeyAuthentication no

Host ewpratten-steamdeck
    User deck
    ForwardX11 yes

Host 10.80.0.218
    User root
    PreferredAuthentications password
    PubkeyAuthentication no
    PubkeyAcceptedKeyTypes +ssh-rsa
    HostKeyAlgorithms=+ssh-rsa

Host controller.home
    User root
    Port 2222

# Default hostnames I may encounter in the wild
Host openrepeater.local
    HostName openrepeater.local
    User root
    StrictHostKeyChecking no

Host raspberrypi.local
    StrictHostKeyChecking no
    User pi

Host 192.168.8.1
    User root
    PreferredAuthentications password
    PubkeyAuthentication no
    PubkeyAcceptedKeyTypes +ssh-rsa
    HostKeyAlgorithms=+ssh-rsa

# Raider Robotics
Host 10.50.24.2
    StrictHostKeyChecking no
    User admin

# Sheridan College
Host *.fast.sheridanc.on.ca
    ProxyJump prattene@atlas.sheridanc.on.ca
Host *.sheridanc.on.ca
    User prattene
    RequestTTY yes
    PubkeyAcceptedKeyTypes +ssh-rsa
    HostKeyAlgorithms +ssh-rsa

# NLNOG
Host *.ring.nlnog.net
    User ewpratten
    IdentitiesOnly yes

# SDF.org
Host sdf.org *.sdf.org
    User ewpratten

# Personal Infra
Host oci-arm
    HostName oci-arm.vpn.ewp.fyi
    User ubuntu

# Various Aliases
Host desktop
    HostName ewpratten-desktop.home

Host laptop
    HostName ewpratten-laptop.home

Match all
    Include ~/.ssh/config.local