Is there a way to access files in the repo without the ssh and/or git protocol? #455
-
Allow me to start by stating that I have a feeling that I'm missing the obvious. You know, when you have that uneasy feeling that your question is rather dumb, since the solution is so obvious, yet you don't see it. So you have to ask. That's me. Now. Please let me know if you can provide any insight. I have not opened a discussion before and may be misunderstanding its purpose. Please close this discussion, if inappropriate. Currently, I store the public keys of SSH users in a Gitea repository and fetch them during login using the This method works well with I would like to migrate this repo to Despite my attempts to use more basic tools such as curl, wget and rsync (including the syntax of: rsync -e "ssh -p 23231 -l repo_user_name" ...), I have been unsuccessful. Since the gist:
How can I download fake_public_key.pub from the repo without git or ssh? I would appreciate any ideas or feedback, even if it is just to confirm that what I am striving for is not possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @QuantumLibet, thank you for opening this discussion. Currently, only the SSH server supports the For now, you can use the |
Beta Was this translation helpful? Give feedback.
Hi @QuantumLibet, thank you for opening this discussion.
Currently, only the SSH server supports the
blob
API interface. Adding a new HTTP endpoint for those APIs makes sense when dealing with a single file and atext/plain
header. I've created a new issue #456 to track this feature.For now, you can use the
blob
SSH command as an unauthenticated user usingkeyboard-interactive
SSH auth typessh -o PreferredAuthentications=keyboard-interactive <host> -- repo blob <repo> <optional git revision> <file path>