What is causing access denied when attempting seamless connection through PSMP

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

What is causing access denied when attempting seamless connection through PSMP

L1 Bithead

We have a Rehat 8 PSMP server, which was patched. Following reboot it had issues with the SSSD service and was unable to connect to AD and was showing disconnected in the vault.

 

Following updates to SSSD config and re-creating the cred files for the psmpgwuser, psmpadbridgeserveruser & psmpappuser. The PSMP is now showing connected in cyberArk and talking to the vault successfully.

 

However, when initiating a seamless connection using Putty in the below format:

 

<vaultUsername>@<account>@<dest ip>@<PSMP IP>

the login fails with "access denied".

 

The vault user in use has rights, and shows no violations in privateArk when authenticating so the auth attempt failure seems to be before the vault auth.

 

The only information we have is the /var/log/secure log, which shows the below entries when the login prompt appears for the user:

 

Mar 13 17:36:04 psmp1 sshd[62154]: debug1: userauth-request for user [email protected]#[email protected] service ssh-connection method none [preauth]

Mar 13 17:36:05 psmp1 sshd[62154]: Invalid user [email protected]#[email protected] from 198.1.1.1 port 54283

Mar 13 17:36:05 psmp1 sshd[62154]: debug1: PAM: initializing for "[email protected]#[email protected]"

Mar 13 17:36:07 psmp1 sshd[62154]: Failed none for invalid user [email protected]#[email protected] from 198.1.1.1 port 54283 ssh2

 

After entering the requested password, the below messages then appear:

 

Mar 13 17:36:56 psmp1 sshd[62154]: debug1: userauth-request for user [email protected]#[email protected] service ssh-connection method password [preauth]

Mar 13 17:36:59 psmp1 sshd[62154]: Failed password for invalid user [email protected]#[email protected] from 198.1.1.1 port 54283 ssh2

 

Can anyone suggest where the issue may lie here?

 

Thanks

6 REPLIES 6

L7 Applicator

Are there any security settings in the sshd_config file that prevents remote logon

L7 Applicator

Hi @John Evans​ 

 

Please try manually login to target host using target account and if that works, it will confirm the issue with PSMP authentication.

 

Also please check that AllowUsers or DenyUsers parameters in /etc/ssh/sshd_confi are not restricting access for target account.

 

 

L1 Bithead

thanks both, We've tested the target account on a separate PSMP which works without issue.

 

We have the below in the sshd_config which has been copied from a working server:

 

 

AllowGroups PSMConnectUsers proxymng root user1 user2 user3 ansible cgd.sva.lnx.adm

# override default of no subsystems

Subsystem    sftp  /usr/libexec/openssh/sftp-server

 

# Example of overriding settings on a per-user basis

#Match User anoncvs

#    X11Forwarding no

#    AllowTcpForwarding no

#    PermitTTY no

#    ForceCommand cvs server

# PSMP Authentication Configuration Block Start

Match Group PSMConnectUsers

  AuthenticationMethods publickey,keyboard-interactive keyboard-interactive

  AuthorizedKeysCommand /opt/CARKpsmp/bin/psshkeys_runner.sh

  AuthorizedKeysCommandUser root

# PSMP Authentication Configuration Block End

 

It seems for whatever reason the account being used to login is not found in the PSMPConnectUsers group when it logs in:

 

Mar 14 13:34:17 fb1pcybpmp17 sshd[5871]: debug3: checking match for 'Group PSMConnectUsers' user [email protected]#[email protected] host 198.1.2.3 addr 198.1.2.3 laddr 198.1.2.3 lport 22

Mar 14 13:34:17 fb1pcybpmp17 sshd[5871]: debug1: Can't match group at line 147 because user [email protected]#[email protected] does not exist

Mar 14 13:34:17 fb1pcybpmp17 sshd[5871]: debug3: match not found

Mar 14 13:34:17 fb1pcybpmp17 sshd[5871]: Invalid user [email protected]#[email protected] from 198.1.2.3 port 61753

 

L4 Transporter

Hi, can you check if PermitEmptyPasswords value has been changes. This may affect PSMConnectuser

L1 Bithead

Hi Somidi.

 

It is set as below:

 

# To disable tunneled clear text passwords, change to no here!

#PasswordAuthentication yes

PermitEmptyPasswords no

PasswordAuthentication yes

 

this is the same setting as on another server, which seems to be working as expected.

 

 

 

L4 Transporter

Hello @John Evans​ 

Have you received an answer to your question? If so, we kindly encourage you to share it with us.

Your insights could be valuable to other community members in the future.

 

Thank you, Isar.

  • 570 Views
  • 6 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!