Skip to content

Instantly share code, notes, and snippets.

@bric3
Last active December 12, 2022 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bric3/ae5d5e5961f516c9a48c0af3af5c7141 to your computer and use it in GitHub Desktop.
Save bric3/ae5d5e5961f516c9a48c0af3af5c7141 to your computer and use it in GitHub Desktop.
IdentitiesOnly with teleport configuration

If you use IdentitiesOnly yes in your SSH config, because you want to limit the key info you send to random SSH servers, it may not work for some teleport+ssh services like for git.domain.com One alternative is to have:

Host git.domain.com
    ProxyCommand ssh -A -p 3023 %r@teleport.domain.com -s proxy:%h:22
    IdentitiesOnly no

Host teleport.domain.com
    IdentitiesOnly no

Host other.host
    IdentityFile /path/to/identity

Host *
    IdentitiesOnly yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment