PSM AutoIT with SSHKey

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

PSM AutoIT with SSHKey

L4 Transporter

Hi,

can someone give me a hint, how SSHKeys can be used for PSM sessions, with AutoIT?

How is the parameter called and what is the value? Is it a path or the key as string?

Thanks

1 accepted solution

Accepted Solutions

L4 Transporter

Hi, I've just tested:

The password is the Key itself as String.

So if you want to use, you have to put it into a file.

View solution in original post

7 REPLIES 7

L7 Applicator

Hi @Balazs Racz​ 

 

The SSH keys is often called “PrivateKey”.

 

  1. The value is typically the path to the private key file on the server running the AutoIT script.
  2. Please ensure that the path is correctly specified, and PSM should use the provided SSH key for authentication during the session.
  3. You will need to define a variable in AutoIt script

 

Example:

 

Local $privateKeyPath = "C:\Path to PrivateKey.pem"

 

Then, in the PSM login section, after you define command to enter username you will have to write a command to enter the private key path.

 

Hope it helps !

 

 

 

 

L4 Transporter

Hi there is a bit of misunderstanding.

Key should come from the Vault, so PSM gets it as parameter/value from the Vault, just like ordinary passwords.

 

@Balazs Racz​  in this case can we use CCP call here to get the key and pass it ?

so, in this way you can get key from vault. I'm not sure exactly how it's possible, because I'm not actively no longer working with Auto IT😉.

 

Hi, why make it more complicated? PSM-SSH connection component also works with SSHKey... So PSM can definitely deliver it, the question is how, but I will then "reverse engineer" it.

L4 Transporter

Hi, I've just tested:

The password is the Key itself as String.

So if you want to use, you have to put it into a file.

Hi @Balazs Racz​  can you please elaborate? We also want to create a custom WinScp SSHKey connector. what is the vaule of Key if we want to the Key should come from the Vault, so PSM gets it as parameter/value from the Vault, just like ordinary passwords.

Thank you.

Hi,

if you get the session variables on the PSM, the SSH key is under the attribute Password/TargetPassword.

So in your connector you take the password, which is the Key, and put it in a file. Use that file for the WinSCP connection.

 

Tip: If you want to password protect the SSH key, you can create a linked account (eg. logon account) in CyberArk, which has the password for the key. In the connector, you will use then both the target and the linked account.

You could invoke like: winscp.exe scp://[email protected]:2222/ /privatekey=mykey.ppk /passphrase *******

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