Gradle did reject my ssh key due to invalid privatekey. The solution: converting it into a different format. ssh-keygen-p -f id_rsa -m pem ...