Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit c5c44d5

Browse files
committed
Clarifty VS Code client is required (CI Ignore)
1 parent abef8d5 commit c5c44d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

script-library/docs/sshd.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ This script can be used either ad-hoc in an already running container or in a Do
3030
The SSH script is included in the default Codespaces image (codespaces-linux) that is used in Codespaces when you do not have a custom `devcontainer.json`. It may also be in images you or your organization has created. Here's how to enable SSH in these cases.
3131

3232
Usage:
33-
1. The first time you've started the codespace, you will want to set a password for your user. If running as a user other than root, and you have `sudo` installed:
33+
1. Connect to your container or [codespace using VS Code (client)](https://docs.github.com/en/github/developing-online-with-codespaces/connecting-to-your-codespace-from-visual-studio-codeusing).
34+
35+
1. The first time you've started the container / codespace, you will want to set a password for your user. If running as a user other than root, and you have `sudo` installed:
3436

3537
```bash
3638
sudo passwd $(whoami)
@@ -92,7 +94,7 @@ Usage:
9294
passwd
9395
```
9496

95-
5. Connect to the container or [codespace using VS Code](https://docs.github.com/en/github/developing-online-with-codespaces/connecting-to-your-codespace-from-visual-studio-code). You can now SSH into the container on port `2222`. For example, if you are in the container as the `vscode` user, run the following command in a **local terminal**:
97+
5. Connect to the container or [codespace using VS Code (client)](https://docs.github.com/en/github/developing-online-with-codespaces/connecting-to-your-codespace-from-visual-studio-code). You can now SSH into the container on port `2222`. For example, if you are in the container as the `vscode` user, run the following command in a **local terminal**:
9698

9799
```bash
98100
ssh -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o GlobalKnownHostsFile=/dev/null vscode@localhost
@@ -107,7 +109,7 @@ If you are unable to connect, it's possible SSH is available on a different loca
107109
108110
If you already have a running container, you can use the script to spin up SSH inside it.
109111
110-
1. Connect to the container or [codespace using VS Code](https://docs.github.com/en/github/developing-online-with-codespaces/connecting-to-your-codespace-from-visual-studio-code).
112+
1. Connect to the container or [codespace using VS Code (client)](https://docs.github.com/en/github/developing-online-with-codespaces/connecting-to-your-codespace-from-visual-studio-code).
111113
112114
2. Open a terminal in VS Code and run the following if you're connected as a non-root user and `sudo` is installed:
113115

0 commit comments

Comments
 (0)