Getting the Error "No credential found for types [SSH Password,SSH Private Key] with credential tag [TEST

krishna26
Kilo Expert

Hello Everyone,

We are going to work on a ServiceNow integration where we are supposed to connect to a Linux Server & Execute a command. For this, i have created a vey basic, sample custom WF activity , connecting a particular hostname.

Upon Execution i am getting the below error

{
"output": null,
"errorMessages": "No credential found for types [SSH Password,SSH Private Key] with credential tag [TEST_SSH_AMAVAR_SNOW]\n",
"debugMessages": "{\"debug_info\":[{\"10.220.995.632\":{\"credentials_attempted\":[],\"connection_parameters\":{\"credential_types\":[\"SSH Password\",\"SSH Private Key\"],\"required_tag\":\"TEST_SSH_AMAVAR_SNOW\",\"target\":\"10.220.995.632\"}}}]}",
"eccSysId": "6e74860a1b1018142fdb8444cc4bcb4f",
"tags": null
}

Can anyone kindly inform what is the cause of happening of the issue ... 

1 ACCEPTED SOLUTION

Hi Tim,

Tried all the things but no luck hence raised a Hi-Ticket.

Response from Hi-Support team is if the instance is NewYork version then if we have outh2.0 credentials in the Credentials table then we will get the errors 

SEVERE *** ERROR *** An error occurred while decrypting credentials from instance
com.snc.automation_common.integration.exceptions.AutomationIOException: Unable to retrieve data from instance. This MID may not be validated.

This is fixed in Orland it seems.

Inactivated the outh 2.0 credentials we have & checked then it worked perfectly fine

Thanks for your suggestions & help


View solution in original post

23 REPLIES 23

Sandeep132
Kilo Sage

Hi Krishna,

Please check this documentation https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/product/orchestration/task/set-up-cred-tags-powershell.html and see if you are tagging the required credential with "TEST_SSH_AMAVAR_SNOW". If you are updating the creddential properly the execution should work.

Hi Sandeep

 

I have to access a Linux Server for executing.a particular command hence created a SSH Custom Activity, In credentials table I have created the credential record by giving the user name & password and checked the ‘test credential . It’s working fine , after checking that have created a Connection & Credential Aliases record of type Credential & liked this to the credential record. Please see the screen shots.

Is there any wrong in this, kindly let me know the corrections.(I am very new to this ITOM module, started working on this since yesterday)

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Check this article for how you should use credential tags:

https://community.servicenow.com/community?id=community_blog&sys_id=27521d19db1c549c5129a851ca9619fa

Thanks,
Ashutosh

Hi Ashutosh, 

i am looking for using credentials for SSH Custom Activity . Could you help on how to do this please.

 

Thanks & Regards,

Vamsi Krishna