-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH key auth with custom port in configuration for git server doesn't save / work #94
Comments
Jeez, I can't type nor speak English properly today, sorry |
Fixed in 1.2.0.21 |
It isn't fixed on my end; will update with the exact behavior. Thanks for the quick response & update, wow! ... I didn't mean to close this, could you reopen it? Thanks. |
So, I have the repo information filled in, correct username, server, repo path, etc. The resulting URL is the same I use to clone and pull on my laptop. It saves now, but if I go to either "Synchronize repository" or "Pull from remote" and press enter for no passphrase, it throws:
After a few seconds of " |
How did you get your repository on your phone? Was it by cloning using this path, or creating a new repository then adding the server information? |
Cloning using the path. I created the repository on the server. I was using the same repo that used to have the old connection information, however; I'll try re-cloning the repo from scratch after clearing the cache & data of the app. |
I'm still having this issue on the latest version from F-Droid, here is the error message I receive: https://i.imgur.com/8k8JeGC.png (apologies for sucking at GH issues, did not mean to close & reopen...) |
FWIW I have that first error message |
There is a workaround for this issue (v1.2.0.35 F-Droid), as part of it is git related and not Android-Password-Store related. Let's say you want to use a repo with ssh-keys. The issue is the same in Android-Password-Store, if you want to use ssh protocol and a custom port, you have to add the protocol Worked for me ^^ A good idea would be to systematically add the protocol in the 'resulting URL' field or the command line used internally. |
It looks like the solution to this problem is to prepend ssh:// to the connection string for custom ports. For the root cause, which also makes #153 happen, it can be fixed by catching git errors and displaying to the user in a friendly way, which seems to be #219, so this bug in itself could probably just be closed. |
This issue still persists when the hostname resolves to an IPv6 address.
The URL magically has |
Hmm, maybe that is a bug in jgit not supporting ipv6? Does it work fine with ipv4? |
@hughdavenport Actually, I can't get password-store to pull from IPv6 endpoints at all when there's a custom port involved. Tried through AAAA records, plain IPv6 addresses and addresses within square brackets, there are different errors everytime. A quick search yields this, but perhaps there's an issue with the way password-store handles the URLs/addresses. IPv4 works fine with plain addresses and hostnames. Can troubleshoot further if you can't reproduce. |
Probably our fault :) I will try to reproduce this. |
This should be fixed after the logic was refactored in b94b52a. |
If you import an SSH key, set the git server to use ssh-key auth, enter a custom SSH port, and press save, it doesn't actually save nor work for syncing.
The text was updated successfully, but these errors were encountered: