[PR #2678] [MERGED] Allow custom SSH user in UI for built-in SSH server (#2617) #16537

Closed
opened 2025-11-02 12:12:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2678
Author: @pgaskin
Created: 10/8/2017
Status: Merged
Merged: 10/14/2017
Merged by: @lafriks

Base: masterHead: custom-builtin-ssh-user


📝 Commits (7)

  • 2607da5 Allow custom SSH user in UI for built-in SSH server (#2617)
  • 2d20cd1 Some fixes
  • d9d4791 Did make fmt
  • ccdac95 Updated according to review
  • 3e86b1a Updated according to review
  • 248c0e6 Fixed some minor issues
  • 9706d5b Merge branch 'master' into custom-builtin-ssh-user

📊 Changes

3 files changed (+13 additions, -3 deletions)

View changed files

📝 conf/app.ini (+2 -0)
📝 models/repo.go (+8 -3)
📝 modules/setting/setting.go (+3 -0)

📄 Description

This allows a custom username to be set for the built-in SSH server.

It adds the config option BUILTIN_SSH_USER in the [server] section. If this option is missing or empty, it defaults to the RUN_USER (which was the default before), and it it is present and the built-in SSH server is enabled, then it uses the custom user for the built-in SSH server.

This does not introduce any compatibility issues with old versions.

I have tested this feature.

See issue #2617


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2678 **Author:** [@pgaskin](https://github.com/pgaskin) **Created:** 10/8/2017 **Status:** ✅ Merged **Merged:** 10/14/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `custom-builtin-ssh-user` --- ### 📝 Commits (7) - [`2607da5`](https://github.com/go-gitea/gitea/commit/2607da551dfaf27f40e4b182978be9a604766eee) Allow custom SSH user in UI for built-in SSH server (#2617) - [`2d20cd1`](https://github.com/go-gitea/gitea/commit/2d20cd19e8f60f6dd3d236edb2b6d2c64970ab3b) Some fixes - [`d9d4791`](https://github.com/go-gitea/gitea/commit/d9d47916f625661e8f8a14dbbce13d1866f88290) Did make fmt - [`ccdac95`](https://github.com/go-gitea/gitea/commit/ccdac9575a3b0979b5ca2c1129960f429d7c8cc3) Updated according to review - [`3e86b1a`](https://github.com/go-gitea/gitea/commit/3e86b1a940fa409e8fd12cba654640f731cdc3da) Updated according to review - [`248c0e6`](https://github.com/go-gitea/gitea/commit/248c0e6935b3852f0c3a11802f9e71f518215177) Fixed some minor issues - [`9706d5b`](https://github.com/go-gitea/gitea/commit/9706d5b4cbe41501661459bb03c50ec9f151a748) Merge branch 'master' into custom-builtin-ssh-user ### 📊 Changes **3 files changed** (+13 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+2 -0) 📝 `models/repo.go` (+8 -3) 📝 `modules/setting/setting.go` (+3 -0) </details> ### 📄 Description This allows a custom username to be set for the built-in SSH server. It adds the config option `BUILTIN_SSH_USER` in the `[server]` section. If this option is missing or empty, it defaults to the `RUN_USER` (which was the default before), and it it is present and the built-in SSH server is enabled, then it uses the custom user for the built-in SSH server. This does not introduce any compatibility issues with old versions. I have tested this feature. See issue #2617 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:12:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16537