Title: Private editing without relying on password auth (+ socket behaviour) · Issue #174 · coder/sshcode · GitHub
Open Graph Title: Private editing without relying on password auth (+ socket behaviour) · Issue #174 · coder/sshcode
X Title: Private editing without relying on password auth (+ socket behaviour) · Issue #174 · coder/sshcode
Description: I am interested in using sshcode+code-server to edit files remotely in a multi-user environment. By default anyone on localhost (both on the client and remote) can access the webserver (and edit my files). I want to avoid using a passwor...
Open Graph Description: I am interested in using sshcode+code-server to edit files remotely in a multi-user environment. By default anyone on localhost (both on the client and remote) can access the webserver (and edit my...
X Description: I am interested in using sshcode+code-server to edit files remotely in a multi-user environment. By default anyone on localhost (both on the client and remote) can access the webserver (and edit my...
Opengraph URL: https://github.com/coder/sshcode/issues/174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Private editing without relying on password auth (+ socket behaviour)","articleBody":"I am interested in using sshcode+code-server to edit files remotely in a multi-user environment. By default anyone on localhost (both on the client and remote) can access the webserver (and edit my files). I want to avoid using a password and would prefer a solution that only makes available the webserver to the user that executes the sshcode command.\r\n\r\nHere is what I tried so far:\r\nOn the remote this can be achieved by binding to a socket-file in the user directory. ~~Interestingly code-server doesn't seem to clean up the specified \"--socket\" file when exiting, and refuses to start if the file already exists (I do not know enough about the matter to assess whether this is expected/desired behavior or not, hence I mention it here instead of a separate issue).~~ (already reported https://github.com/cdr/code-server/issues/1538)\r\n\r\nOn the clientside it is not quite so easy: While ssh supports forwarding both TCP-\u003esocket and socket-\u003esocket, there seems to be no way to access a \".sock\" via a graphical browser (see this year old request for chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=451721).\r\n\r\nSince this seems to be rather complex, I would like to ask you about your expertise/ideas. Can this be done, or is the use-case for code-server different from my goal (user-private editing).\r\n\r\nCurrently I use sshfs with local vscode, and was hoping that code-server could improve this workflow.\r\n\r\nBest regards,\r\nTyrius","author":{"url":"https://github.com/TheTyrius","@type":"Person","name":"TheTyrius"},"datePublished":"2020-04-29T13:44:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/174/sshcode/issues/174"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9116c82a-ebac-1684-a323-8dd8bd52cfd5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A078:244D91:53D1CC:747A24:69690121 |
| html-safe-nonce | 8f20d1a9a19a152d7ef363aca88f6d8280aeb216e1607f233c63f5805bd60b1b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDc4OjI0NEQ5MTo1M0QxQ0M6NzQ3QTI0OjY5NjkwMTIxIiwidmlzaXRvcl9pZCI6IjEyNTUzMTUxODQ1NjkzNTI0ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d12250ffa0fabbdd51e22a22f5f317434c1b8291d4099fdf82129c249721741c |
| hovercard-subject-tag | issue:609069856 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/sshcode/174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6eb7dfdddd75648bc8120690644531ad91f233ea82e81758d73f32b530fa5fde/coder/sshcode/issues/174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6eb7dfdddd75648bc8120690644531ad91f233ea82e81758d73f32b530fa5fde/coder/sshcode/issues/174 |
| og:image:alt | I am interested in using sshcode+code-server to edit files remotely in a multi-user environment. By default anyone on localhost (both on the client and remote) can access the webserver (and edit my... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheTyrius |
| hostname | github.com |
| expected-hostname | github.com |
| None | e6156bd4ef9f2dc8dadf4c49a8f7ed8532186388cef72eda3ccb9f0ab3b8cfca |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/sshcode git https://github.com/coder/sshcode.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 182143383 |
| octolytics-dimension-repository_nwo | coder/sshcode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 182143383 |
| octolytics-dimension-repository_network_root_nwo | coder/sshcode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fd1938215b152e2c6a29cf56fec07fd9f91f1203 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width