Skip to content

gitssh help shows options that are not available #7816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #10759
renesas-brandon-hussey opened this issue Jun 2, 2023 · 0 comments
Closed
Tracked by #10759

gitssh help shows options that are not available #7816

renesas-brandon-hussey opened this issue Jun 2, 2023 · 0 comments
Labels
cli Area: CLI s3 Bugs that confuse, annoy, or are purely cosmetic stale This issue is like stale bread.

Comments

@renesas-brandon-hussey
Copy link

Hi, this was tested against Coder v0.23.7+a903d7c. I am trying to automate verification that user's have added their Coder SSH public key to different hosts. If you run coder gitssh you'll get the following output.

coder gitssh
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command]

Coder authenticates with  git  using the public key below. All clones with SSH  
are authenticated automatically 🪄.                                             

 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJX6eMUWpPlBlSHp5JQsUeEO7MqGUTKE0LHqI2yxFGnW 

Add to GitHub and GitLab:
> https://github.com/settings/ssh/new
> https://gitlab.com/-/profile/keys

exit status 255

While testing, I tried using some of the command line options and all of them seem to give me an error.

eg:

coder gitssh -i ~/.ssh/test_key git@github.com
parsing flags ([gitssh -i /home/coder/.ssh/test_key git@github.com]) for "coder gitssh": unknown shorthand flag: 'i' in -i

It seems these option are either not available or I'm not specifying them properly.

Just FYI, this is not blocking me, I found a workaround where I do not need to use the extra options.

@cdr-bot cdr-bot bot added the bug label Jun 2, 2023
@matifali matifali added the cli Area: CLI label Jun 2, 2023
@ammario ammario added the s2 Broken use cases or features (with a workaround). Only humans may set this. label Jun 5, 2023
@ammario ammario added the s3 Bugs that confuse, annoy, or are purely cosmetic label Jun 5, 2023
@cdr-bot cdr-bot bot removed the s3 Bugs that confuse, annoy, or are purely cosmetic label Jun 5, 2023
@matifali matifali added the bug label Jun 6, 2023
@bpmct bpmct added s3 Bugs that confuse, annoy, or are purely cosmetic and removed s2 Broken use cases or features (with a workaround). Only humans may set this. labels Aug 25, 2023
@github-actions github-actions bot added the stale This issue is like stale bread. label Feb 22, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Area: CLI s3 Bugs that confuse, annoy, or are purely cosmetic stale This issue is like stale bread.
Projects
None yet
Development

No branches or pull requests

4 participants