On 3/14/2024 9:07 AM, Jon Turney via Cygwin-apps wrote:
On 14/03/2024 15:39, Mark Geisert via Cygwin-apps wrote:
On 3/14/2024 2:42 AM, Jon Turney via Cygwin-apps wrote:
On 14/03/2024 05:45, Mark Geisert via Cygwin-apps wrote:
Hi folks,
I'm getting the error:

fatal: remote error: service not enabled: /git/cygwin-packages/sshfs

when I attempt 'git push' to that repository.  The same happens with all the repositories for my packages.  It's been this way for a couple days at least.

Have I forgotten some step in the connection at my end?  I'm running ssh-agent.

[...]
What is the repository URL you are trying to push to (git remote -v)?

/usr/src/upstaging/sshfs git remote -v
origin     git://cygwin.com/git/cygwin-packages/sshfs (fetch)
origin     git://cygwin.com/git/cygwin-packages/sshfs (push)

This maybe looks like pilot error.

We don't allow pushing using the git:// protocol (since this protocol doesn't do any authorization, pushes with a it are very rarely enabled)


I suggest you need to do

  git push ssh://[email protected]:git/cygwin-packages/sshfs

to push successfully.

If that works, I suggest you memorialize that by doing

  git remote set-url origin --push ssh://[email protected]:git/cygwin-packages/sshfs

which will cause git to automatically use the ssh URL with a simple 'git push'.

With a minor correction ("/git" instead of "git" in the URL) this works fine. I've made the git config change for all my projects.

You might like to review the last time we discussed this at [1]

(Note that's slightly different, as to push to cygwin-apps repositories you must present the key as [email protected], whereas for cygwin-packages repositories, you can present the key as [email protected] There are just different due to historical reasons.)

[1] https://cygwin.com/pipermail/cygwin-apps/2021-September/041539.html

Thanks very much, Jon.

..mark

Reply via email to