.pem key credentials Discovery

H3ll0 Th3r3
Kilo Contributor

Hi Everyone 🙂

I am trying to run Discovery and I am getting some log messages saying, "No credential found for types [SSH Password,SSH Private Key]". My server that is set up for Discovery detection only has a .pem key right now. When I go into Discovery to add credentials for this, all I can find are credentials that require user names and passwords. What is up with that? How do I provide ServiceNow with the .pem file directly or get a username/password from the .pem to use?

Thanks in advance ❤️

11 REPLIES 11

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

have a look at this topic discussion, it might be useful for fix your problem:

SSHCommand: No valid credential found for types [SSH Password,SSH Private Key]

Adding target to blacklist. No valid credential found for types [SSH Password,SSH Private Key]

Hope this will be useful for you.

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Hi Alberto!

 

I may be reading your sources wrong.I need to know how to add a pem file as a credential. I don't seem to have a username and password like this form wants.

 

I also don't really know what a passphrase is or what I would put in for the private key.

 

This is where my confusion is.

find_real_file.png

DaveHertel
Kilo Sage
Kilo Sage

Hi - to use private key  (.PEM) credentials, such as those used on AWS, etc. you can enter these as SSH Private Key creds.  You only need to provide 2 fields:  The UserName and SSH Private Key.  The "name" field is just a user-friendly name for you to remember its purpose.  Unless you've explicitly provided a passphrase, this won't be needed (of course... if u have used a passphrase, this is needed)

In my example, I just have a user acct name and private key.. a minimum of 2 fields needed in the example of very basic AWS EC2 linux boxes. When saving the credential record, the other fields look like they have real content, but I didn't provide a 'password' or 'SSH passphrase'... after saving ellipses are inserted into those fields, so after its saved its impossible to view the content.

find_real_file.png

 

find_real_file.png

 

Does this help?  

Hi Dave,

 

I am trying to discover the Redhat Amazon Ec2 instance but couldn't classify the Redhat Linux server.  I loaded the .pem key into PuTTygen copied the private key pasted in ServiceNow SSH Private key credential. I added username as "ec2-user" which it is generic for all ec2 linux instances. I tried using quick discovery it's not resolving. If any configuration parameter need to configure on the mid server please help me with this issue. 

 

Thanks,

Sravan