From b7b5d8b1c02f6a8755c880d6f615115760462c8b Mon Sep 17 00:00:00 2001 From: Achille Merendino Date: Sat, 10 Sep 2022 00:02:45 +0200 Subject: [PATCH] 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 --- src/sshd/NOTES.md | 4 ++-- src/sshd/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sshd/NOTES.md b/src/sshd/NOTES.md index c80a732..3126a1b 100644 --- a/src/sshd/NOTES.md +++ b/src/sshd/NOTES.md @@ -16,7 +16,7 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for 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 F1 or Ctrl/Cmd+Shift+P 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 F1 or Ctrl/Cmd+Shift+P 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. @@ -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. -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 +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. diff --git a/src/sshd/README.md b/src/sshd/README.md index c8e95e8..1a98531 100644 --- a/src/sshd/README.md +++ b/src/sshd/README.md @@ -37,7 +37,7 @@ While the some services automates SSH setup (e.g., when using the GitHub CLI for 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 F1 or Ctrl/Cmd+Shift+P 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 F1 or Ctrl/Cmd+Shift+P 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.