Spring Cloud Config configuration error git private

After reloading the computer, rebuilt ssh key file id_rsa and id_rsa.pub file.

Then start the project after the configuration center equipped with a private key, given as follows:

Reason: Property 'spring.cloud.config.server.git.privateKey' is not a valid

  After a closer look I discovered the private key begins with BEGIN OPENSSH PRIVATE KEY, ending END OPENSSH PRIVATE KEY, and

Now the server such as mysql, gitee and so does not support this format, so we generate original format: start with a BEGIN RSA PRIVATE KEY,

End END RSA PRIVATE KEY.

  

ssh-keygen -m PEM -t rsa -b 4096 -C "[email protected]"

  

  Reconfigure the private key can be friends.

Guess you like

Origin www.cnblogs.com/alinainai/p/11100089.html