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

feat: replace coder sh implementation to shell out to ssh #292

Merged
merged 5 commits into from
Mar 17, 2021

Conversation

cmoog
Copy link
Contributor

@cmoog cmoog commented Mar 17, 2021

Previously, we used our custom WebSocket shell protocol
to open shells with coder sh. This divergent behavior
from genuine SSH created confusion and a lack of feature parity
between the two connection methods.

Previously, we used our custom websocket shell protocol
to open shells with `coder sh`. This divergent behavior
from genuine SSH creates confusion and lack of feature parity
between the two connection methods.
@cmoog cmoog requested review from jawnsy and deansheather March 17, 2021 16:24
@jawnsy
Copy link
Contributor

jawnsy commented Mar 17, 2021

Is this going to affect dependencies required on Windows? I think Linux and Mac machines often include OpenSSH clients, but the same is not true on Windows. I'm on my phone right now but will take a deeper look later

@deansheather
Copy link
Member

@jawnsy windows 10 has openssh installed by default now

@cmoog cmoog marked this pull request as ready for review March 17, 2021 16:47
@cmoog
Copy link
Contributor Author

cmoog commented Mar 17, 2021

Obviously as follow-ups we could add flag behavior similar to gcloud compute ssh...

ERROR: (gcloud.compute.ssh) argument [USER@]INSTANCE: Must be specified.
Usage: gcloud compute ssh [USER@]INSTANCE [optional flags] [-- SSH_ARGS ...]
  optional flags may be  --command | --container | --dry-run |
                         --force-key-file-overwrite | --help | --internal-ip |
                         --plain | --ssh-flag | --ssh-key-expiration |
                         --ssh-key-expire-after | --ssh-key-file |
                         --strict-host-key-checking | --tunnel-through-iap |
                         --zone

For detailed information on this command and its flags, run:
  gcloud compute ssh --help

@cmoog cmoog requested a review from sreya March 17, 2021 17:34
@cmoog cmoog dismissed deansheather’s stale review March 17, 2021 17:35

gonna swap you out for jon since he has the customer context here as well

Args: shValidArgs,
Example: `coder ssh my-dev
coder ssh my-dev pwd`,
Aliases: []string{"sh"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cmoog cmoog merged commit 61fa5ad into master Mar 17, 2021
@cmoog cmoog deleted the cmoog/cleanup-sh branch March 17, 2021 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants