Unix via SSH with Agent Forwarding

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

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Unix via SSH with Agent Forwarding

L0 Member
1 accepted solution

Accepted Solutions

L5 Sessionator

Hey @Solomon Gebreyesus​ If you start here by downloading PuttyCAC -

https://github.com/NoMoreFood/putty-cac/releases

 

Then setting up PuttyCAC (here is a good guide from the official US gov site):

https://www.idmanagement.gov/implement/scl-ssh/

 

If that's all set, configure PSMP(at least v14.2) by editing these parameters:

1. Edit /etc/opt/CARKpsmp/conf/basic_psmpserver.conf and make sure that there is an entry PSMPSessionSeparationEnabled=Yes. After the change, restart the PSMP service.

2. Edit /etc/ssh/sshd_config and make sure that the is entry AllowAgentForwarding yes. After the change, restart the SSH service.

This is from: https://docs.cyberark.com/pam-self-hosted/latest/en/Content/PASIMP/PSM_for_SSH_session_separation.htm

 

The official minimum version of PVWA is also 14.2. You can use previous versions, but the UI won't handle the new platform well and will ask for a password to the account. In such a case, leave the input empty.

Install a new platform Unix via SSH Agent Forwarding:

 

1. Log on to the Password Vault Web Access as a user with permission to configure platforms, safes, and accounts.

2. Import the Unix via SSH Agent Forwarding platform from the CyberArk Marketplace: https://cyberark.my.site.com/mplace/s/#a35Ht0000018rxrIAA-a39Ht000004GLFjIAO

3. Add a new account and select the platform Unix via SSH Agent Forwarding.

 

Source: https://docs.cyberark.com/pam-self-hosted/latest/en/Content/PASIMP/Configuring-Accounts-to-Provide-Specific-Connection-Methods.htm#Configur2

 

Now you should be able to connect to the target machine without providing a password. If you use a smart card, you will be prompted to enter the pin.

1. Start putty and enter the connection string.

2. In Connection -> SSH -> Auth enable Allow agent forwarding.

3. Click on Open. You should be able to connect to the target machine without providing a password.

 

 

If you're going to integrate with LDAP to store their ssh key:

https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/configuring-management-of-users-public-ssh-keys.htm#CustomizehowpublicSSHkeysaredefinedintheLDAPdirectory

View solution in original post

2 REPLIES 2

L5 Sessionator

Hey @Solomon Gebreyesus​ If you start here by downloading PuttyCAC -

https://github.com/NoMoreFood/putty-cac/releases

 

Then setting up PuttyCAC (here is a good guide from the official US gov site):

https://www.idmanagement.gov/implement/scl-ssh/

 

If that's all set, configure PSMP(at least v14.2) by editing these parameters:

1. Edit /etc/opt/CARKpsmp/conf/basic_psmpserver.conf and make sure that there is an entry PSMPSessionSeparationEnabled=Yes. After the change, restart the PSMP service.

2. Edit /etc/ssh/sshd_config and make sure that the is entry AllowAgentForwarding yes. After the change, restart the SSH service.

This is from: https://docs.cyberark.com/pam-self-hosted/latest/en/Content/PASIMP/PSM_for_SSH_session_separation.htm

 

The official minimum version of PVWA is also 14.2. You can use previous versions, but the UI won't handle the new platform well and will ask for a password to the account. In such a case, leave the input empty.

Install a new platform Unix via SSH Agent Forwarding:

 

1. Log on to the Password Vault Web Access as a user with permission to configure platforms, safes, and accounts.

2. Import the Unix via SSH Agent Forwarding platform from the CyberArk Marketplace: https://cyberark.my.site.com/mplace/s/#a35Ht0000018rxrIAA-a39Ht000004GLFjIAO

3. Add a new account and select the platform Unix via SSH Agent Forwarding.

 

Source: https://docs.cyberark.com/pam-self-hosted/latest/en/Content/PASIMP/Configuring-Accounts-to-Provide-Specific-Connection-Methods.htm#Configur2

 

Now you should be able to connect to the target machine without providing a password. If you use a smart card, you will be prompted to enter the pin.

1. Start putty and enter the connection string.

2. In Connection -> SSH -> Auth enable Allow agent forwarding.

3. Click on Open. You should be able to connect to the target machine without providing a password.

 

 

If you're going to integrate with LDAP to store their ssh key:

https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/configuring-management-of-users-public-ssh-keys.htm#CustomizehowpublicSSHkeysaredefinedintheLDAPdirectory

L4 Transporter

Hello,

if you are connecting with domain accounts you might need to add an additional delimeter as well.

if adding the percent sign the syntax would be user@domainsuffix%privuser#domainsuffix%targetserverDNSorIPAddress@PSMPserverOrLoadBalancerAddress

 

Old reference that should still be applicable - https://community.cyberark.com/s/article/00004581

 

  • 1 accepted solution
  • 59 Views
  • 2 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!