GH-CODESPACE-SSH(1) GitHub CLI manual GH-CODESPACE-SSH(1) (NAME) gh-codespace-ssh - SSH (SYNOPSIS) gh codespace ssh [...] [-- ...] [] (DESCRIPTION) ssh SSH . gh cs ssh . ssh / ssh ~/.ssh . : 1. -i 2. 3. ssh ( ssh -G) 4. ssh --config ssh OpenSSH OpenSSH . ~/.ssh/config OpenSSH ssh Bash/Zsh scp/rsync/sshfs ssh git . ( ) ( ssh gh cs ssh). SSH . SSH Dockerfile devcontainer.json : "features": { "ghcr.io/devcontainers/features/sshd:1": { "version": "latest" } } (OPTIONS) -c, --codespace --config OpenSSH (stdout) -d, --debug --debug-file --profile SSH -R, --repo (user/repo) --repo-owner ( ) --server-port (default 0) SSH ( 0 => ) (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) $ gh codespace ssh $ gh codespace ssh --config > ~/.ssh/codespaces $ printf 'Match all\nInclude ~/.ssh/codespaces\n' >> ~/.ssh/config (SEE ALSO) gh-codespace(1) Sep 2026 GH-CODESPACE-SSH(1)