René's URL Explorer Experiment


Title: Use wildcard SSH host names · Issue #14986 · coder/coder · GitHub

Open Graph Title: Use wildcard SSH host names · Issue #14986 · coder/coder

X Title: Use wildcard SSH host names · Issue #14986 · coder/coder

Description: I would like to propose that we configure SSH with a wildcard instead of individual host names. For example: coder.* ProxyCommand coder %h And in ssh.go we trim out the coder. prefix. Mainly, this is to support the IDEs. VS Code already ...

Open Graph Description: I would like to propose that we configure SSH with a wildcard instead of individual host names. For example: coder.* ProxyCommand coder %h And in ssh.go we trim out the coder. prefix. Mainly, this ...

X Description: I would like to propose that we configure SSH with a wildcard instead of individual host names. For example: coder.* ProxyCommand coder %h And in ssh.go we trim out the coder. prefix. Mainly, this ...

Opengraph URL: https://github.com/coder/coder/issues/14986

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use wildcard SSH host names","articleBody":"I would like to propose that we configure SSH with a wildcard instead of individual host names.  For example:\n\n```\ncoder.*\n  ProxyCommand coder %h\n```\n\nAnd in `ssh.go` we trim out the `coder.` prefix.\n\nMainly, this is to support the IDEs.  VS Code already does this with a special `vscodessh` sub-command but I think we should roll that up into `ssh`, then JetBrains can also benefit.\n\nThe main reason is that the IDEs support connecting to anyone's workspace (for admins).  That means potentially hundreds of SSH config entries, and potentially hundreds of calls to template resources, since that has to be [done for every workspace](https://github.com/coder/coder/blob/ea3b13c78e2bcc15317ba74070084b61233b7589/cli/configssh.go#L161), at least the ones that are off, to get the agent names.\n\nIt would eventually remove the need for the Gateway and VS Code plugins to implement their own versions of `config-ssh` as they currently do, but this would need one more tweak to include the deployment URL in the host (for example `coder-vscode.dev.coder.com--*` is generated by the VS Code plugin).\n\nIt would eliminate the resource fetch loop in `config-ssh` as well.\n\nAs one data point, I tested with 138 off workspaces and configuring SSH took 20 seconds.\n\nAlternatives:\n- A separate `idessh` sub-command that does this, maybe just rename `vscodessh` and add a deprecated alias, but I believe it also has some VS Code-specific logic that would need to be figured out.\n- Gate it behind flags (`config-ssh --wildcard` and `ssh --wildcard` or some such).\n- Skip changing `config-ssh` for now, and add `ssh --strip-prefix=coder-vscode.dev.coder.com--` or some such flag to at least allow the IDEs to configure their own wildcard host.\n- From the IDEs, we could instead do some inline shell magic to strip out the prefix, but I am not sure what Windows support looks like.\n\n```\ncoder-vscode.dev.coder.com--*\n  ProxyCommand coder $(echo \"%h\" | sed 's/coder-vscode.dev.coder.com--//')\n```\n\n---\n\n**Edit**: I presented the prefix flag as an alternative, but actually no matter what we will need a prefix flag for `ssh` because we want unique hosts for the plugins so they can add different SSH configuration if necessary (for example the session type env var, although that is deprecated).  I also learned that `config-ssh` already has an `ssh-prefix-host` flag, so it makes sense to add that same flag to `ssh`.  Then we can use `ProxyCommand coder ssh --ssh-prefix-host coder-gateway.dev.coder.com. %h` and emit a single wildcard entry in the plugins.\n\nI think we should still eventually change `config-ssh` to use wildcards, and switch the plugins to use `config-ssh` instead of replicating that effort, but that can be done later.","author":{"url":"https://github.com/code-asher","@type":"Person","name":"code-asher"},"datePublished":"2024-10-04T22:27:06Z","url":"https://github.com/coder/coder/issues/14986"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:64cdc37c-9a7d-eb3b-3bab-419fa3f56ec0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB9AC:6DC60:19C39DE:206DE7D:6B017E3E
html-safe-nonce59c9efc6ff9b1277a165ca90e7d09a0b7058245b244248f4a145cab318262ebb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUFDOjZEQzYwOjE5QzM5REU6MjA2REU3RDo2QjAxN0UzRSIsInZpc2l0b3JfaWQiOiIxMjM3NTM2NjA1NTYwOTk1MzkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1af2ba907ce3bfed9889bd8e0ea97531e175643bf7bfd94b2a06a87d04783525
hovercard-subject-tagissue:2567489512
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/14986/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f0e7dee5e2dec2dbd5e59e4e695b0c532b56cc02f24be56289f4ddd6127c66be/coder/coder/issues/14986
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f0e7dee5e2dec2dbd5e59e4e695b0c532b56cc02f24be56289f4ddd6127c66be/coder/coder/issues/14986
og:image:altI would like to propose that we configure SSH with a wildcard instead of individual host names. For example: coder.* ProxyCommand coder %h And in ssh.go we trim out the coder. prefix. Mainly, this ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecode-asher
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/14986#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F14986
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F14986
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/14986
Reloadhttps://github.com/coder/coder/issues/14986
Reloadhttps://github.com/coder/coder/issues/14986
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/14986
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/14986
Featurehttps://github.com/coder/coder/issues?q=type:"Feature"
Use wildcard SSH host nameshttps://github.com/coder/coder/issues/14986#top
networkingArea: networkinghttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22networking%22
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 4, 2024https://github.com/coder/coder/issues/14986#issue-2567489512
done for every workspacehttps://github.com/coder/coder/blob/ea3b13c78e2bcc15317ba74070084b61233b7589/cli/configssh.go#L161
Nexthttps://github.com/coder/coder/issues/14986?timeline_page=1
coder-labelerhttps://github.com/apps/coder-labeler
featurehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22feature%22
networkingArea: networkinghttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22networking%22
on Oct 4, 2024https://github.com/coder/coder/issues/14986#event-14525674890
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 4, 2024https://github.com/coder/coder/issues/14986#issuecomment-2394775460
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 4, 2024https://github.com/coder/coder/issues/14986#issuecomment-2394778303
code-asherhttps://github.com/code-asher
on Oct 4, 2024https://github.com/coder/coder/issues/14986#event-14525922675
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 4, 2024https://github.com/coder/coder/issues/14986#issuecomment-2394785482
https://github.com/ammario
ammariohttps://github.com/ammario
on Oct 5, 2024https://github.com/coder/coder/issues/14986#issuecomment-2395140224
matifalihttps://github.com/matifali
featurehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22feature%22
on Oct 14, 2024https://github.com/coder/coder/issues/14986#event-14643128166
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 15, 2024https://github.com/coder/coder/issues/14986#issuecomment-2414975193
https://github.com/ammario
ammariohttps://github.com/ammario
on Oct 15, 2024https://github.com/coder/coder/issues/14986#issuecomment-2415150752
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 15, 2024https://github.com/coder/coder/issues/14986#issuecomment-2415210441
https://github.com/Emyrk
Emyrkhttps://github.com/Emyrk
on Oct 23, 2024https://github.com/coder/coder/issues/14986#issuecomment-2431992621
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 29, 2024https://github.com/coder/coder/issues/14986#issuecomment-2445066337
https://github.com/ethanndickson
ethanndicksonhttps://github.com/ethanndickson
on Oct 30, 2024https://github.com/coder/coder/issues/14986#issuecomment-2446384918
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 30, 2024https://github.com/coder/coder/issues/14986#issuecomment-2448200902
code-asherhttps://github.com/code-asher
on Nov 1, 2024https://github.com/coder/coder/issues/14986#event-15073070543
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Nov 1, 2024https://github.com/coder/coder/issues/14986#issuecomment-2452323741
https://github.com/ethanndickson
ethanndicksonhttps://github.com/ethanndickson
on Nov 2, 2024https://github.com/coder/coder/issues/14986#issuecomment-2452769750
aaronlehmannhttps://github.com/aaronlehmann
on Jan 9, 2025https://github.com/coder/coder/issues/14986#event-15872275580
feat: parse structured hostname arguments to "coder ssh"https://github.com/aaronlehmann/coder/commit/8a7b5dcd519b444ec7af884bd562faf8a07f44d1
8a7b5dchttps://github.com/aaronlehmann/coder/commit/8a7b5dcd519b444ec7af884bd562faf8a07f44d1
https://github.com/matifali
matifalihttps://github.com/matifali
on Jan 10, 2025https://github.com/coder/coder/issues/14986#issuecomment-2581896301
@spikecurtishttps://github.com/spikecurtis
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
on Jan 10, 2025https://github.com/coder/coder/issues/14986#issuecomment-2582627497
@spikecurtishttps://github.com/spikecurtis
bcpeinhardthttps://github.com/bcpeinhardt
on Jan 14, 2025https://github.com/coder/coder/issues/14986#event-15915238809
feat: add --ssh-host-prefix flag for "coder ssh" (#16088)https://github.com/coder/coder/commit/1aa9e32a2ba9e7b623516ee033bf20de764b2afd
#16088https://github.com/coder/coder/pull/16088
1aa9e32https://github.com/coder/coder/commit/1aa9e32a2ba9e7b623516ee033bf20de764b2afd
https://github.com/matifali
matifalihttps://github.com/matifali
on Mar 12, 2025https://github.com/coder/coder/issues/14986#issuecomment-2718185213
@bcpeinhardthttps://github.com/bcpeinhardt
https://github.com/bcpeinhardt
bcpeinhardthttps://github.com/bcpeinhardt
on Mar 12, 2025https://github.com/coder/coder/issues/14986#issuecomment-2718243982
@matifalihttps://github.com/matifali
@code-asherhttps://github.com/code-asher
https://github.com/matifali
matifalihttps://github.com/matifali
on Mar 12, 2025https://github.com/coder/coder/issues/14986#issuecomment-2718345702
@bcpeinhardthttps://github.com/bcpeinhardt
#16828https://github.com/coder/coder/issues/16828
@ThomasK33https://github.com/ThomasK33
matifalihttps://github.com/matifali
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 12, 2025https://github.com/coder/coder/issues/14986#event-16716519810
https://github.com/octoxan
octoxanhttps://github.com/octoxan
on Mar 20, 2025https://github.com/coder/coder/issues/14986#issuecomment-2740409086
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
on Mar 20, 2025https://github.com/coder/coder/issues/14986#issuecomment-2740468738
@octoxanhttps://github.com/octoxan
https://github.com/octoxan
octoxanhttps://github.com/octoxan
on Mar 20, 2025https://github.com/coder/coder/issues/14986#issuecomment-2740851064
@spikecurtishttps://github.com/spikecurtis
https://private-user-images.githubusercontent.com/4382195/425059574-bafa94e1-93de-4bf7-9969-d8eaef09b932.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNjAyNjcsIm5iZiI6MTc5NTI1OTk2NywicGF0aCI6Ii80MzgyMTk1LzQyNTA1OTU3NC1iYWZhOTRlMS05M2RlLTRiZjctOTk2OS1kOGVhZWYwOWI5MzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjFUMTExOTI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTQ5YzdiMTlkZjEwOGY5NjgxMTZmZDhiOGQ5MGNmNzA2MzA5MDIwOWJjY2EyNjMyMjA4MDVlZTlhYWYyNzExZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.UIn7EXIxPXE7fAN9cTPXPXu65iK-8sHGCCes6KaDyyQ
matifalihttps://github.com/matifali
on Nov 5, 2026https://github.com/coder/coder/issues/14986#event-35205988580
fix: write agent host entries with `config-ssh --no-wildcard` (#31192)https://github.com/coder/coder/commit/fb6d2875286ec3ea9e86c945eff7f88c0346631a
#31192https://github.com/coder/coder/pull/31192
fb6d287https://github.com/coder/coder/commit/fb6d2875286ec3ea9e86c945eff7f88c0346631a
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/14986
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/14986
networkingArea: networkinghttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22networking%22
Featurehttps://github.com/coder/coder/issues?q=type:"Feature"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.