- You need to have gh CLI installed.
- JetBrains IDE that can connect to remote host via SSH
- Create Codespace in GitHub. You can do it either via the UI or using gh CLI.
- Create local SSH server that is connected to the Codespace you need.
gh cs ssh --server-port <port>
For example,
gh cs ssh --server-port 30042
You will see something like this:
$ gh cs ssh --server-port 30042
? Choose codespace: OptimumCode/json-schema-validator (main): redesigned zebra
Connection Details: ssh vscode@localhost [-p 30042 -o NoHostAuthenticationForLocalhost=yes -o PasswordAuthentication=no]
- Connect to Codespace using the displayed connection details.