# git clone works in ide but not git bash CLI

2 messages from 2018-09-24 to 2018-10-02. Participants: David Brown, Johannes Schindelin.
Thread: https://gitlist.dev/t/49413

## David Brown, 2018-09-24 20:43

Subject: git clone works in ide but not git bash CLI
Message-ID: <2e7399d2595f403507ebbe748ee5f5ae@davidwbrown.name>
URL: https://gitlist.dev/e/2e7399d2595f403507ebbe748ee5f5ae%40davidwbrown.name

```
Howdy, I have a conundrum:

App: Spring Cloud Config Server
envvars: GIT_URL and SSH_KEY
IDE: Intellij 2018.2.4 Ultimate

When I use the IDE to assign the SSH_KEY value all is copacetic.

If I assign the envvar at the Git Bash CLI:

com.jcraft.jsch.JSchException: Auth fail

Any guesses?

Thanks and regards,


```

## Johannes Schindelin, 2018-10-02 22:59

Subject: Re: git clone works in ide but not git bash CLI
Message-ID: <nycvar.QRO.7.76.6.1810030058530.2034@tvgsbejvaqbjf.bet>
URL: https://gitlist.dev/e/nycvar.QRO.7.76.6.1810030058530.2034%40tvgsbejvaqbjf.bet
In-Reply-To: <2e7399d2595f403507ebbe748ee5f5ae@davidwbrown.name>

```
Hi David,

On Mon, 24 Sep 2018, David Brown wrote:

> Howdy, I have a conundrum:
> 
> App: Spring Cloud Config Server
> envvars: GIT_URL and SSH_KEY
> IDE: Intellij 2018.2.4 Ultimate
> 
> When I use the IDE to assign the SSH_KEY value all is copacetic.
> 
> If I assign the envvar at the Git Bash CLI:
> 
> com.jcraft.jsch.JSchException: Auth fail
> 
> Any guesses?

This sounds like you use JGit somehow? Whereas "Git Bash CLI" suggests
that you actually want to use Git for Windows?

Ciao,
Johannes

> Thanks and regards,
> 
> 

```
