Codeberg-CI/feedback
488
71

URL rejected: Port number was not a decimal number between 0 and 65535 #263

Closed
opened 2025年06月05日 15:34:02 +02:00 by jinzoningen · 2 comments

I am having this error since today with woodpecker:

I recently changed email, but I updated the secret accordingly.

I am having this error since today with woodpecker: + git push -f https://$GIT_USERNAME:$GIT_PASSWORD@codeberg.org/********/pages.git pages fatal: unable to access 'https://********:********@codeberg.org/********/pages.git/': URL rejected: Port number was not a decimal number between 0 and 65535 I recently changed email, but I updated the secret accordingly.

I've never pushed to a git repo via https, therefore cannot help directly.

I find SSH much more convenient, especially when pushing to mirrored repos e.g. github and codeberg at the same time.

git remote -v # List your existing remotes

Copy your SSH pub key to Codeberg and change your remote's URL from HTTPS to SSH:
git remote set-url origin git@codeberg.org:USERNAME/REPONAME.git

Successful SSH connection test:

user@t520:~$ ssh -T git@codeberg.org
Hi there, boldsuck! You've successfully authenticated with the key named user@t520 id_ed25519_sk, but Forgejo does not provide shell access.
If this is unexpected, please log in with password and setup Forgejo under another user.
I've never pushed to a git repo via https, therefore cannot help directly. I find SSH much more convenient, especially when pushing to mirrored repos e.g. github and codeberg at the same time. `git remote -v` # List your existing remotes Copy your SSH pub key to Codeberg and change your remote's URL from HTTPS to SSH: `git remote set-url origin git@codeberg.org:USERNAME/REPONAME.git` Successful SSH connection test: ``` user@t520:~$ ssh -T git@codeberg.org Hi there, boldsuck! You've successfully authenticated with the key named user@t520 id_ed25519_sk, but Forgejo does not provide shell access. If this is unexpected, please log in with password and setup Forgejo under another user. ```
Author
Member
Copy link

@boldsuck wrote in #263 (comment):

I've never pushed to a git repo via https, therefore cannot help directly.

I find SSH much more convenient, especially when pushing to mirrored repos e.g. github and codeberg at the same time.

git remote -v # List your existing remotes

Copy your SSH pub key to Codeberg and change your remote's URL from HTTPS to SSH: git remote set-url origin git@codeberg.org:USERNAME/REPONAME.git

Successful SSH connection test:

user@t520:~$ ssh -T git@codeberg.org
Hi there, boldsuck! You've successfully authenticated with the key named user@t520 id_ed25519_sk, but Forgejo does not provide shell access.
If this is unexpected, please log in with password and setup Forgejo under another user.

Thanks! However I found what the problem was, and it was human related :/ I miswrote the token generated.
Anyway, using ssh instead of https could be interesting.

@boldsuck wrote in https://codeberg.org/Codeberg-CI/feedback/issues/263#issuecomment-5010894: > I've never pushed to a git repo via https, therefore cannot help directly. > > I find SSH much more convenient, especially when pushing to mirrored repos e.g. github and codeberg at the same time. > > `git remote -v` # List your existing remotes > > Copy your SSH pub key to Codeberg and change your remote's URL from HTTPS to SSH: `git remote set-url origin git@codeberg.org:USERNAME/REPONAME.git` > > Successful SSH connection test: > > ```text > user@t520:~$ ssh -T git@codeberg.org > Hi there, boldsuck! You've successfully authenticated with the key named user@t520 id_ed25519_sk, but Forgejo does not provide shell access. > If this is unexpected, please log in with password and setup Forgejo under another user. > ``` Thanks! However I found what the problem was, and it was human related :/ I miswrote the token generated. Anyway, using ssh instead of https could be interesting.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg-CI/feedback#263
Reference in a new issue
Codeberg-CI/feedback
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?