From 02902e29b4c48d06f1ff3c2c25cee6eda292c9db Mon Sep 17 00:00:00 2001 From: Eljo George Date: Mon, 1 Aug 2022 23:08:14 +0000 Subject: [PATCH 1/2] CS ssh helptext to indicate how to install ssh --- pkg/cmd/codespace/ssh.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/cmd/codespace/ssh.go b/pkg/cmd/codespace/ssh.go index e52422e51..1402d3a7c 100644 --- a/pkg/cmd/codespace/ssh.go +++ b/pkg/cmd/codespace/ssh.go @@ -63,6 +63,14 @@ func newSSHCmd(app *App) *cobra.Command { Once that is set up (see the second example below), you can ssh to codespaces as if they were ordinary remote hosts (using 'ssh', not 'gh cs ssh'). + + Please note that you might need to explicitly install 'sshd' when using a + custom container image. You can install it by adding following snippet to the + 'devcontainer.json' + + "features": { + "sshd": "latest" + } `), Example: heredoc.Doc(` $ gh codespace ssh From ace223d7820182994e6f2341a62d36a52694e226 Mon Sep 17 00:00:00 2001 From: Eljo George Date: Mon, 1 Aug 2022 23:49:49 +0000 Subject: [PATCH 2/2] updated message --- pkg/cmd/codespace/ssh.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/codespace/ssh.go b/pkg/cmd/codespace/ssh.go index 1402d3a7c..5aff32c59 100644 --- a/pkg/cmd/codespace/ssh.go +++ b/pkg/cmd/codespace/ssh.go @@ -64,9 +64,9 @@ func newSSHCmd(app *App) *cobra.Command { Once that is set up (see the second example below), you can ssh to codespaces as if they were ordinary remote hosts (using 'ssh', not 'gh cs ssh'). - Please note that you might need to explicitly install 'sshd' when using a - custom container image. You can install it by adding following snippet to the - 'devcontainer.json' + Note that the codespace you are connecting to must have an SSH server pre-installed. + If the docker image being used for the codespace does not have an SSH server, you can + try adding the following snippet in your devcontainer.json: "features": { "sshd": "latest"