Skip to content

Allow custom SSH user in UI for built-in SSH server. #2617

Closed
@pgaskin

Description

@pgaskin

The built-in SSH server is useful, especially for testing. The biggest disadvantage is that the user shown in the UI for the built-in SSH server is set to whatever the RUN_USER is set to, which must be the user Gitea is started as.

Because the built-in SSH server only uses the public-key to authenticate, I can use any user when cloning the repository.

In my opinion, there should be a config option to set a custom user to display in the UI in the SSH clone URL when the built-in SSH server is enabled. There could also be an option to omit the user entirely, because any user will work, as long as the SSH key is registered in the user's settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions