I am trying to create spring cloud config server to connect to git repository(bitbucket) using an SSH URI. I am following Spring Cloud Config
I generated key pair using ssh-keygen utility and pasted the .pub file content in ssh section of my bitbucket account but when I am running the server that is a spring boot application, I am getting invalid privateKey exception.
I also used the suggestion provided in this stack overflow post but no luck, still getting the same error.
Is there any specific format in which we need to put the private key file in application.yml or .properties file?
And if I want to use .properties instead of .yml then how to place the privateKey property value in a single line as generated private key file text contains new line characters?