a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

SSH keeps requesting for password

Open lace-wing opened this issue 2 years ago • 3 comments

Symptom

After entering command lg2 clone, the SSH keeps asking for password, instead of performing the clone. This has a chance to happen, or it is to specific repositories, I’m not sure.

Example

ssh_keep_requesting_password In this case, I have no password set for that key, so I just pressed Enter when it says Password:, then the password request shows up again.

To confirm that my SSH authentication is working, I cloned another repo which is this repo, and it was cloned. ssh_password_issue_success_n_failure

Same issue occurred when I was cloning other repos a few days ago, however after several tries and restarts I managed to clone. This time it just not cloning.

Spec

  • Machine: iPad Pro 3
  • OS: iPadOS 16.5
  • a-Shell: from App Store

lace-wing avatar Jul 05 '23 02:07 lace-wing

I have no idea what is happening. The fact that the key works for another repository means there are no problems with the key itself, or with the identification method. I tried cloning the same repository you tried, and it worked on my end. I didn't even have to enter a password for the key.

Do you have a ~/Documents/.ssh/config file?

holzschu avatar Jul 05 '23 05:07 holzschu

I have no idea what is happening.

The fact that the key works for another repository means there are no problems with the key itself, or with the identification method. I tried cloning the same repository you tried, and it worked on my end. I didn't even have to enter a password for the key.

Do you have a ~/Documents/.ssh/config file?

Hours later I tried cloning the repo, and it worked, so it's not the SSH's issue. I'll try using a config file to skip that step, thx.

lace-wing avatar Jul 05 '23 06:07 lace-wing

Update:

  1. With this issue, sometimes the repo's folder is created, sometimes the .git folder is created as well, but not actually cloning anything.
  2. When the problem occurs, the lg2 clone command does not show up in history.

lace-wing avatar Jul 05 '23 11:07 lace-wing