You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh codespace ssh --config generates a config that assumes the existence of ~/.ssh/codespaces.auto, and thus any subsequent ssh cs.my-space.my-branch invocations fail.
$ gh --versiongh version 2.46.0 (2024-03-26 Debian 2.46.0-1)https://github.com/cli/cli/releases/tag/v2.46.0
Steps to reproduce the behavior
$ gh codespace ssh --config >>~/.ssh/config
$ ssh -v cs.my-space.my-branch[…]error getting ssh server details: failed to read public key file: open /home/tomi/.ssh/codespaces.auto.pub: no such file or directorykex_exchange_identification: Connection closed by remote hostConnection closed by UNKNOWN port 65535
Expected vs actual behavior
I expected to be able to connect without getting an error.
This was discussed earlier in #5958 (comment) - but never resolved. It's quite baffling actually - why reference a key file that will never be generated? How can that ever work?
Describe the bug
gh codespace ssh --configgenerates a config that assumes the existence of~/.ssh/codespaces.auto, and thus any subsequentssh cs.my-space.my-branchinvocations fail.Steps to reproduce the behavior
Expected vs actual behavior
I expected to be able to connect without getting an error.
This was discussed earlier in #5958 (comment) - but never resolved. It's quite baffling actually - why reference a key file that will never be generated? How can that ever work?