Git for Windows 2.23 GCM Credentials Problem on SSH (Power)Shell

162 views
Skip to first unread message
Message has been deleted
Message has been deleted
Message has been deleted

IMI

unread,
Sep 23, 2019, 8:29:16 AM9/23/19
to git-for-windows
Hi there,

i've installed Git for Windows 2.23 with the GCM on a Windows 10 (1903) system and configured it to ask for credentials on the command prompt, so git gonfig -l prints

credential.helper=manager
credential
.modalprompt=false  

When i work directly on the system everything is fine. git clone e.g. asks me for a username and password on the command line for cloning a remote via https.

Anyway i have to connet via ssh to the system (in fact, to a number of equal systems, that's why i want to use [cluster]ssh). Therefore Power Shell Server 2016 is running on the system. When i connect via ssh, i get a PS command shell which in general works totally fine. But doing a git clone fails, leaving my ssh connection broken with:

git : Cloning into 'mylocaldir'...
In Zeile:1 Zeichen:1
+ git clone https://myremote ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   
+ CategoryInfo          : NotSpecified: (Cloning into 'mylocaldir'...:Strin
   g
) [], RemoteException
   
+ FullyQualifiedErrorId : NativeCommandError
 
Logon failed, use ctrl+c to cancel basic credential prompt.

bash
: /dev/tty: No such device or address


Any advice?

Thanks in advance...

 

HTW

unread,
Sep 26, 2019, 6:03:01 AM9/26/19
to git-for-windows
We solved this problem by a workaround with a powershell scripts which basically does the following:

- ask for the credentials in powershell
- store the credentials in a .git-credentials file 
- use git config to change credential.helper to store
- issue the git command
- delete the credentials file
- reset credential.helper to manager
Reply all
Reply to author
Forward
0 new messages