Misleading SSH verify error message (the verification does succeed) #14609

Closed
opened 2025-11-02 11:17:26 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @harshitghagre08 on GitHub (Jun 16, 2025).

Originally assigned to: @ozzyozbourne on GitHub.

Description

  • I am trying to do ssh but I am facing error
  • In the ui of the gita is showing that ssh keys are validate also I can see the ssh authorize_key directory
  • But when I check the logs it is showing that it is not validate

Gitea Version

gitea:1.23.8

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

2025/06/12 05:04:45 ...ey/ssh_key_verify.go:38:VerifySSHKey() [E] Unable to validate token signature. Error: ssh: signature did not verify 2025/06/12 05:04:45 ...eb/routing/logger.go:102:func1() [I] router: completed POST /user/settings/keys for , 303 See Other in 15.5ms @ setting/keys.go:46(setting.KeysPost)

Screenshots

Image

Image

Image

Git Version

No response

Operating System

ubuntu lts 24.0.04

How are you running Gitea?

running it on docker container

Database

PostgreSQL

Originally created by @harshitghagre08 on GitHub (Jun 16, 2025). Originally assigned to: @ozzyozbourne on GitHub. ### Description - I am trying to do ssh but I am facing error - In the ui of the gita is showing that ssh keys are validate also I can see the ssh authorize_key directory - But when I check the logs it is showing that it is not validate ### Gitea Version gitea:1.23.8 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist 2025/06/12 05:04:45 ...ey/ssh_key_verify.go:38:VerifySSHKey() [E] Unable to validate token signature. Error: ssh: signature did not verify 2025/06/12 05:04:45 ...eb/routing/logger.go:102:func1() [I] router: completed POST /user/settings/keys for <ip-address>, 303 See Other in 15.5ms @ setting/keys.go:46(setting.KeysPost) ### Screenshots ![Image](https://github.com/user-attachments/assets/cad33546-4eeb-4c36-b32e-213e3fcf9646) ![Image](https://github.com/user-attachments/assets/64f15c35-dbde-4659-9ffa-58519085cc4d) ![Image](https://github.com/user-attachments/assets/23be79f9-2c79-4806-9102-c6bcac1783d7) ### Git Version _No response_ ### Operating System ubuntu lts 24.0.04 ### How are you running Gitea? running it on docker container ### Database PostgreSQL
GiteaMirror added the good first issuetype/bug labels 2025-11-02 11:17:27 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jun 16, 2025):

It's an unrelated message, the error message is wrong and should be removed. You can safely ignore it.

@wxiaoguang commented on GitHub (Jun 16, 2025): It's an unrelated message, the error message is wrong and should be removed. You can safely ignore it.
Author
Owner

@ozzyozbourne commented on GitHub (Jun 16, 2025):

I would like to work on this issue

@ozzyozbourne commented on GitHub (Jun 16, 2025): I would like to work on this issue
Author
Owner

@harshitghagre08 commented on GitHub (Jun 17, 2025):

It's an unrelated message, the error message is wrong and should be removed. You can safely ignore it.

If it's correct done so why it is asking password after doing the ssh

@harshitghagre08 commented on GitHub (Jun 17, 2025): > It's an unrelated message, the error message is wrong and should be removed. You can safely ignore it. If it's correct done so why it is asking password after doing the ssh
Author
Owner

@wxiaoguang commented on GitHub (Jun 17, 2025):

If it's correct done so why it is asking password after doing the ssh

99% is that you used wrong SSH port. Gitea's SSH server doesn't use password auth.

@wxiaoguang commented on GitHub (Jun 17, 2025): > If it's correct done so why it is asking password after doing the ssh 99% is that you used wrong SSH port. Gitea's SSH server doesn't use password auth.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14609