title: Spring Cloud Config server showing invalidPrivateKey
body: <p>I am trying to create spring cloud config server to connect to git repository(bitbucket) using an SSH URI. I am following
  <a href="https://cloud.spring.io/spring-cloud-static/Dalston.SR4/multi/multi__spring_cloud_config_server.html#_git_ssh_configuration_using_properties" rel="nofollow noreferrer">Spring Cloud Config</a></p>
  
  <p>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.</p>
  
  <p>I also used the suggestion provided in <a href="https://stackoverflow.com/questions/47024826/spring-cloud-config-server-using-ssh-key-for-git-and-running-in-docker">this</a> stack overflow post but no luck, still getting the same error.</p>
  
  <ol>
  <li><p>Is there any specific format in which we need to put the private key file in application.yml or .properties file?</p></li>
  <li><p>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?</p></li>
  </ol>