docker install gitea, git ssh clone issue #2545

Closed
opened 2025-11-02 04:39:58 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @M2shad0w on GitHub (Nov 19, 2018).

env docker gitea:latest

git clone git clone git@{domain}:{user}/web.git

正克隆到 'web'...
git@{domain}:{user}: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: 无法读取远程仓库。

but fllowing is ok

git clone  ssh://git@{domain}:10022/{user}/server.git

i don't know why

Originally created by @M2shad0w on GitHub (Nov 19, 2018). env docker gitea:latest git clone git clone git@{domain}:{user}/web.git ``` 正克隆到 'web'... git@{domain}:{user}: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: 无法读取远程仓库。 ``` but fllowing is ok ``` git clone ssh://git@{domain}:10022/{user}/server.git ``` i don't know why
GiteaMirror added the type/question label 2025-11-02 04:39:58 -06:00
Author
Owner

@lunny commented on GitHub (Nov 19, 2018):

you should specify the port

@lunny commented on GitHub (Nov 19, 2018): you should specify the port
Author
Owner

@lafriks commented on GitHub (Nov 19, 2018):

You have to either change host server OpenSSH port or use second option

@lafriks commented on GitHub (Nov 19, 2018): You have to either change host server OpenSSH port or use second option
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2545