This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Flexera Community
- :
- Cloud Management Platform
- :
- Cloud Management Platform Forum
- :
- Why am I getting "credential given is not a valid SSH private key" when refreshing my Repository
Subscribe
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 12, 2019
05:14 PM
Why am I getting "credential given is not a valid SSH private key" when refreshing my Repository
When using a private repository for cookbooks, an SSH key must be provided to authenticate to the repository. Depending on the type of key you are using, you may see the following message when performing a refresh action:
credential given is not a valid SSH private key
If you see this message, it indicates that you are not using a valid PEM-formatted RSA/DSA key. As noted in the docs, only PEM-formatted keys are supported. If you are using a newer version of openssh/ssh-keygen, you will need to specify PEM formatting using the `-m PEM` flag on the command-line, such as:
ssh-keygen -m PEM -t rsa -b 4096 -C "your_email@example.com"
This thread has been automatically locked due to inactivity.
To continue the discussion, please start a new thread.
0 Replies
