PAM non-interactive authentication for scripts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PAM non-interactive authentication for scripts

L1 Bithead

Hi,

 

I have saved server credentials in PAM, and using SIA to access the servers using credentials stored in PAM.

 

There are two levels of authentication. 1 - for the user who is running the ssh command and 2 - for the target user.

 

For the target user, as I mentioned earlier, credentials are stored in PAM, and it is working fine.

 

But the problem is, I have a couple of scripts that connect to servers and perform tasks. How do I automate the login (PAM login) for these scripts? How can I make this whole SSH a non-interactive session?

 

Is there a way through which the user who is running the ssh command could authenticate using PKI rather than providing a password?

 

Thanks in advance.

5 REPLIES 5

L6 Presenter

Take at the Secrets Management suite of products, in particular the Credental Providers. Design Recommendations for CyberArk Secrets Management: A Comprehensive Guide is a nice blog that goes indepth.

L1 Bithead

Hi @Tim Schindler​ Thanks, I only have SIA and PAM solutions. Is it not possible within these 2 solutions?

If you have the "PSMP" component within your PAM Self-Hosted / PrivCloud environment, you can use this to connect via SSH using credentials stored in PAM, and authenticate to PAM using an SSH key-pair.

 

You would create a new Vault user, add a an authorized public key to that Vault user, then give that user permission on the relevant safe(s), and configure your scripts to use the PSMP-specific connection syntax (and to use a specific SSH keypair for authentication to PSMP).

 

Docs: https://docs.cyberark.com/privilege-cloud-shared-services/latest/en/content/privilege%20cloud/privcloud-connect-using-ssh.htm?Highlight=psmp#AutomationtoolaccesstoNIXmachinesthroughPSMforSSH

L4 Transporter

Hi @Suyash Jain​ 

 

Since several community members answered your question, could you kindly share if any of these solutions resolved your issue?

If so, could you please mark the appropriate answer as "Select as Best" to assist other community members.

 

If the issue is still relevant, I would advise raising a ticket with our support team for further assistance.

 

Thank you, Liad

Hi @Bernhard Brückler​ Thanks for the details. Here are my queries:

 

  1. PSMP - I only see PSM for UNIX. And I am using the SIA connector to SSH the Linux servers. So, should I have at least one PSMP connector as well?
  2. I don't see an option to configure/add the SSH keys for a user. I have integrated IDP with CyberArk under "Identity Administration." Even the option is not available for any local user.

 

  • CyberArk is not very clear about PSM for UNIX vs SIA connector.
  • I have gone through every documentation and CyberArk is not talking about SSH keys configuration.

 

Thanks

  • 247 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!