Unverified Commit b7b5d8b1 authored by Achille Merendino's avatar Achille Merendino Committed by GitHub

Change sshd port from 22 to 2222 in README.md (#147)

* Change sshd port from 22 to 2222 in README.md

According to https://github.com/devcontainers/features/blob/e90f4f9e0a327466254f3f1693fbe75aaa2a862f/src/sshd/install.sh#L12 the default port is 2222 and not 22 as previously documented. Forwarding port 22 does not in fact work.

* Changed sshd port in NOTES.md
parent e90f4f9e
...@@ -16,7 +16,7 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for ...@@ -16,7 +16,7 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for
passwd passwd
``` ```
3. Forward the SSH port (`22` by default) to your local machine using either the `forwardPorts` property in `devcontainer.json` or the user interface in your tool (e.g., you can press <kbd>F1</kbd> or <kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and select **Ports: Focus on Ports View** in VS Code to bring it into focus). 3. Forward the SSH port (`2222` by default) to your local machine using either the `forwardPorts` property in `devcontainer.json` or the user interface in your tool (e.g., you can press <kbd>F1</kbd> or <kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and select **Ports: Focus on Ports View** in VS Code to bring it into focus).
4. Use a **local terminal** (or other tool) to connect to it using the command and password from step 2. e.g. 4. Use a **local terminal** (or other tool) to connect to it using the command and password from step 2. e.g.
...@@ -59,4 +59,4 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for ...@@ -59,4 +59,4 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for
``` ```
...where `vscode` above is the user you are running as in the container and `2222` after the `!` is the same local port you used in the `ssh` command in the previous seciton. ...where `vscode` above is the user you are running as in the container and `2222` after the `!` is the same local port you used in the `ssh` command in the previous seciton.
4. Your dev container's filesystem should now be available in the `~/sshfs/devcontainer` folder on macOS or Linux or in a new explorer window on Windows. 4. Your dev container's filesystem should now be available in the `~/sshfs/devcontainer` folder on macOS or Linux or in a new explorer window on Windows.
\ No newline at end of file
...@@ -37,7 +37,7 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for ...@@ -37,7 +37,7 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for
passwd passwd
``` ```
3. Forward the SSH port (`22` by default) to your local machine using either the `forwardPorts` property in `devcontainer.json` or the user interface in your tool (e.g., you can press <kbd>F1</kbd> or <kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and select **Ports: Focus on Ports View** in VS Code to bring it into focus). 3. Forward the SSH port (`2222` by default) to your local machine using either the `forwardPorts` property in `devcontainer.json` or the user interface in your tool (e.g., you can press <kbd>F1</kbd> or <kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and select **Ports: Focus on Ports View** in VS Code to bring it into focus).
4. Use a **local terminal** (or other tool) to connect to it using the command and password from step 2. e.g. 4. Use a **local terminal** (or other tool) to connect to it using the command and password from step 2. e.g.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment