-
Notifications
You must be signed in to change notification settings - Fork 68
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 running under Braid fails to prompt for passphrase on Windows #91
Comments
As I said at #90 (comment), in order to troubleshoot this, we'll need to see the full error from |
I have edited the issue, i modified my local braid copy. |
Thanks for providing the full error. It looks like the problem might be that ssh is unable to prompt for the passphrase when running under Braid because Braid redirects both stdout and stderr and perhaps also stdin. IIUC, ssh uses Possible workarounds:
|
Well, i have removed the passphrase from my ssh key using "ssh-keygen -p". |
Thanks for confirming what the problem was; I've updated the issue title accordingly. More broadly, thanks for supporting Braid and helping us identify three(!) bugs. I think many more people could benefit from Braid if they knew about it, and I'd like to see how people are using Braid now to see if we can do anything better, but GitHub stars and mentions on the web (including |
I am having an issue while adding a mirror by using ssh.
I had this error another time and bypassed the error by using https link to the repository.
But this time, i only have ssh access to the repository of the project.
I successfully cloned the project by using the SSH link(git clone ssh,) but it does not work passing by braid.
Command line :
braid add --verbose ssh://git@IP/rac/project.git Externe/M2M
Output :
Braid: Executing git --version` in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git rev-parse --is-inside-work-tree in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git rev-parse --show-prefix in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git status in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git rev-parse HEAD in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git add .braids.json in D:/Devmeon/AMC/erdf-c1c4
Braid: Adding mirror of 'ssh://git@IP/rac/project.git'.
Braid: Executing git --version in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git rev-parse --is-inside-work-tree in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git rev-parse --show-prefix in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git config remote.master/braid/Externe/M2M.url in D:/Devmeon/AMC/erdf-c1c4
Braid: Setup: Mirror 'Externe/M2M' already has a remote. Replacing it (force)
Braid: Executing git remote rm master/braid/Externe/M2M in D:/Devmeon/AMC/erdf-c1c4
Braid: Setup: Creating remote for 'Externe/M2M'.
Braid: Executing git remote add master/braid/Externe/M2M C:/Users/Tristan/.braid/cache/ssh___git_IP_rac_project.git in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git config remote.master/braid/Externe/M2M.url in D:/Devmeon/AMC/erdf-c1c4
Braid: Executing git clone --mirror ssh://git@IP/rac/project.git C:/Users/Tristan/.braid/cache/ssh___git_IP_rac_project.git in D:/Devmeon/AMC/erdf-c1c4
Braid: Resetting to 'c4d9820'.
Braid: Executing git reset --hard c4d98205dd713a7de7c1161664a4f69b056d2216 in D:/Devmeon/AMC/erdf-c1c4
Braid: Shell error: Cloning into bare repository 'C:/Users/Tristan/.braid/cache/ssh___git_IP_rac_project.git'...`
Edit, full error message :
`git@IP: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.`
The indicated command line is working when i execute it outside braid :
`D:\Devmeon\AMC\erdf-c1c4>git clone --mirror ssh://git@IP/rac/project.git
Cloning into bare repository 'project.git'...
Enter passphrase for key '/c/Users/Tristan/.ssh/id_rsa':
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 63 (delta 17), reused 0 (delta 0) eceiving objects: 63% (40/63)
Receiving objects: 100% (63/63), 24.47 KiB | 501.00 KiB/s, done.
Resolving deltas: 100% (17/17), done.`
braid version : braid 1.1.3
git version : git version 2.27.0.windows.1
The text was updated successfully, but these errors were encountered: