Skip to content
Discussion options

You must be logged in to vote

UPDATE: You can now set up a connection using the GitHub CLI. See https://docs.github.com/en/codespaces/developing-in-codespaces/using-github-codespaces-with-github-cli#ssh-into-a-codespace and gh codespace ssh --help for setup options (like --server-port to specify a localhost port for use with other ssh clients).


See if this works for you:

  1. Create a codespace
  2. Connect to it using VS Code locally
  3. Next, open a terminal (Crtl+Shift+`) in VS Code and run the following:
    curl -sSL https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/sshd-debian.sh | sudo bash -s -- 2222 $(whoami) true random
    
  4. Take note of the password that was generated and the SSH command.
  5. P…

Replies: 12 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@shotgunner
Comment options

@Chuxel
Comment options

@cross-hello
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Chuxel
Comment options

@gtxg16
Comment options

@gtxg16
Comment options

@Chuxel
Comment options

Comment options

You must be logged in to vote
1 reply
@shotgunner
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Feedback Share your thoughts and suggestions on GitHub features and improvements
8 participants