M
M
Mars362021-03-10 03:20:01
git
Mars36, 2021-03-10 03:20:01

Is it possible to commit to a remote repository without an SSH key in Qt Creator?

Is it possible to push commits to an external repository without creating an SSH key or entering a username/password when submitting? In order not to add a new key when changing computers.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kuznetsov, 2021-03-10
@Mars36

Committing directly to a remote repository is not possible, even with a password.
Probably meant Push?
For GitHub, it's better to generate a personal token. You don't have to mess around with SSH.
https://docs.github.com/en/github/authenticating-t...
Moreover, from August 13, 2021, passwords will stop working.

V
Vladimir, 2021-03-10
@Casufi

To a spherical remote repository in a vacuum - you can
https://git-scm.com/book/en/v2/Git-on-the-Server-T...

The Git Protocol
Finally, we have the Git protocol. This is a special daemon that comes packaged with Git; it listens on a dedicated port (9418) that provides a service similar to the SSH protocol, but with absolutely no authentication. In order for a repository to be served over the Git protocol, you must create a git-daemon-export-ok file — the daemon won't serve a repository without that file in it — but, other than that, there is no security . Either the Git repository is available for everyone to clone, or it isn't. This means that there is generally no pushing over this protocol. You can enable push access but, given the lack of authentication, anyone on the internet who finds your project's URL could push to that project. Suffice it to say that this is rare.
The Pros
The Git protocol is often the fastest network transfer protocol available. If you're serving a lot of traffic for a public project or serving a very large project that doesn't require user authentication for read access, it's likely that you'll want to set up a Git daemon to serve your project. It uses the same data-transfer mechanism as the SSH protocol but without the encryption and authentication overhead.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question