Skip to content
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 problems #184

Closed
khinsen opened this issue May 12, 2018 · 5 comments
Closed

SSH key problems #184

khinsen opened this issue May 12, 2018 · 5 comments
Labels

Comments

@khinsen
Copy link

khinsen commented May 12, 2018

I am trying to set up passforios as documented for a self-hosted git server accessible via ssh. I installed the private key via iTunes, which seems to have worked.

When I try to clone my repository, passforious asks me for my SSH passphrase although my key does not have one. That looks suspect. When I enter an empty passphrase, the questions comes up again. After a few repetitions, I get the error message:

Underlying error: Failed to authenticate SSH session: Waiting for USERAUTH response

On the server, the error message is:

sshd[6284]: error: maximum authentication attempts exceeded for git from xx.xx.xx.xx port xxxxx ssh2 [preauth]

I generated another key with a passphrase, but that doesn't make a difference. After entering the passphrase a few times, I get the same error message.

I use both the repository and the SSH key with other machines/software, so I a reasonably sure that everything else is set up correctly.

What can I do to debug this?

@khinsen
Copy link
Author

khinsen commented May 13, 2018

Some more experimentation showed that it's my key that somehow caused the problem, although it's the same one I use with another iOS app (Working Copy) to access my git server. I generated a new key specifically for passforios, and with that key it works just fine.

@mssun
Copy link
Owner

mssun commented May 21, 2018

What algorithm did you use to generate the ssh key?

@khinsen
Copy link
Author

khinsen commented May 21, 2018

RSA2, both for the old key that doesn't work and for the new key that does. They are also both 2048 bits long. I cannot see any obvious difference between the two keys.

@mssun mssun added the git label Nov 20, 2019
@mssun
Copy link
Owner

mssun commented Nov 21, 2019

We have updated libgit2/libssh2/openssl and shipped a TestFlight 0.8.0 (41) with this update. Please help me to confirm this problem is fixed. Refer: #305 (comment)

@khinsen
Copy link
Author

khinsen commented Nov 25, 2019

I was too late to do the TestFlight, but I did update to the current release and test again with my key: it works. Thanks!

@khinsen khinsen closed this as completed Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants