GitHub CLI | Take GitHub to the command line

PHOTO EMBED

Tue Jul 08 2025 11:50:57 GMT+0000 (Coordinated Universal Time)

Saved by @Shookthadev999

$ gh codespace ssh

$ gh codespace ssh --config > ~/.ssh/codespaces
$ printf 'Match all\nInclude ~/.ssh/codespaces\n' >> ~/.ssh/config
content_copyCOPY

https://cli.github.com/manual/gh_codespace_ssh