1. 터널링 사용하지 않는 경우

Host {{별명}}
    HostName     {{Public_IPv4_주소}}
    User         {{접속_사용자명}}
    IdentityFile {{SSH_키_파일_경로}}

예시

Host test
    HostName     12.345.67.89
    User         ubuntu
    IdentityFile C:\\Users\\username\\.ssh\\key.pem

2. SSH 터널링(Bastion Host)

Host {{별명}}
    HostName     {{Private_IPv4_주소}}
    User         {{접속_사용자명}}
    ForwardAgent yes
    IdentityFile {{SSH_키_파일_경로}}
    ProxyCommand ssh -W %h:%p {{Bastion_host_사용자명}}@{{Bastion_Host_Public_IPv4}} -p {{접속_포트번호}} -i "{{Bastion_Host_SSH_키_파일_경로}}"

예시

Host test02
    HostName     12.3.456.789
    User         ubuntu
    ForwardAgent yes
    IdentityFile C:\\Users\\username\\.ssh\\key1.pem
    ProxyCommand ssh -W %h:%p [email protected] -p 22 -i "C:\\Users\\username\\.ssh\\_bastion-keypair.pem"

참고