Skip to content

Cannot clone with built-in SSH server on Windows #18528

Closed
@doggy8088

Description

@doggy8088

Gitea Version

1.16.0

Git Version

git version 2.35.1.windows.1

Operating System

Microsoft Windows [Version 10.0.19041.1466]

How are you running Gitea?

I'm running from command-line using Windows Service.

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/doggy8088/b7cd4708419f77a2988562f995a2cc6c

2022/02/02 00:41:52 modules/ssh/ssh.go:260:sshConnectionFailed() [W] Failed connection from [::1]:50383 with error: [ssh: no auth passed yet]
2022/02/02 00:41:52 modules/ssh/ssh.go:262:sshConnectionFailed() [W] Failed authentication attempt from [::1]:50383

Description

In my client (localhost), I do generate an key-pair. I also setup in Gitea here: https://gitea.localhost/user/settings/keys . I still can't clone using SSH protocol.

PS C:\Projects> git clone git@localhost:will.huang/aaa.git
Cloning into 'aaa'...
git@localhost: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Use HTTPS is fine.

Screenshots

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/duplicateThe issue has already been reported.issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions