sbtgiter8

Auth fail when running `sbt new`


Here's a transcript so far:

$ sbt new lagom/lagom-scala.g8
[info] Loading global plugins from /Users/abrahma/.sbt/1.0/plugins
[info] Set current project to lagomlife (in build file:/Users/abrahma/Bitbucket/Practice-Scala/LagomLife/)
[info] Set current project to lagomlife (in build file:/Users/abrahma/Bitbucket/Practice-Scala/LagomLife/)

ssh://git@github.com/lagom/lagom-scala.g8.git: Auth fail

I've verified authentication with GitHub:

$ ssh -T git@github.com
Hi agam! You've successfully authenticated, but GitHub does not provide shell access.

Also verified that I can access the repo in question (i.e. I can do the following, in a separate location):

git clone ssh://git@github.com/lagom/lagom-scala.g8.git

Edit: fwiw I'm able to work around whatever the root cause is here:

git clone ssh://git@github.com/lagom/lagom-scala.g8.git
g8 file:///Users/abrahma/tmp/lagom-scala.g8

Solution

  • I ran into this problem as well, and solved it by removing the following from my ~/.gitconfig:

    [url "git@github.com:"]
      insteadOf = https://github.com/