Using port 22 that is not the default for ssh requires adding a prefix #10125

Closed
opened 2025-11-02 08:58:52 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @lmlx66 on GitHub (Jan 18, 2023).

Description

When I use port 222 as the ssh request port, the ssh link prompt given to me by gitea is as followsgit@wfggit.com/222:1938857445/wfg-admin-vue.git

But I need to add the prefix ssh://git to use it,for example:ssh://git@wfggit.com:222/1938857445/wfg-admin-vue.git

This may be just a small problem

Screenshots

Snipaste_2023-01-18_21-35-15

Gitea Version

1.18.0

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

windows10

Browser Version

edge

Originally created by @lmlx66 on GitHub (Jan 18, 2023). ### Description When I use port 222 as the ssh request port, the ssh link prompt given to me by gitea is as follows`git@wfggit.com/222:1938857445/wfg-admin-vue.git` But I need to add the prefix ` ssh://git` to use it,for example:`ssh://git@wfggit.com:222/1938857445/wfg-admin-vue.git` This may be just a small problem ### Screenshots ![Snipaste_2023-01-18_21-35-15](https://user-images.githubusercontent.com/65378985/213185295-7218c913-82df-45e6-8bf9-9507b2743833.png) ### Gitea Version 1.18.0 ### Can you reproduce the bug on the Gitea demo site? Yes ### Operating System windows10 ### Browser Version edge
GiteaMirror added the type/question label 2025-11-02 08:58:52 -06:00
Author
Owner

@zeripath commented on GitHub (Jan 18, 2023):

This used to be correct

@zeripath commented on GitHub (Jan 18, 2023): This used to be correct
Author
Owner

@zeripath commented on GitHub (Jan 18, 2023):

and it works on main...

@zeripath commented on GitHub (Jan 18, 2023): and it works on main...
Author
Owner

@zeripath commented on GitHub (Jan 18, 2023):

and it works on 1.18.1 on docker...

@zeripath commented on GitHub (Jan 18, 2023): and it works on 1.18.1 on docker...
Author
Owner

@zeripath commented on GitHub (Jan 18, 2023):

What is your app.ini configuration?

@zeripath commented on GitHub (Jan 18, 2023): What is your app.ini configuration?
Author
Owner

@lmlx66 commented on GitHub (Jan 19, 2023):

Unfortunately, my server system is broken, and I am trying to use the host to reproduce the problem.

@lmlx66 commented on GitHub (Jan 19, 2023): > Unfortunately, my server system is broken, and I am trying to use the host to reproduce the problem.
Author
Owner

@lmlx66 commented on GitHub (Jan 19, 2023):

What is your app.ini configuration?

Sorry to bother you, it's my configuration error

@lmlx66 commented on GitHub (Jan 19, 2023): > What is your app.ini configuration? Sorry to bother you, it's my configuration error
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10125