Can we configure PSMP session timeout in CyberArk without modifying target server sshd_config ?

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

Can we configure PSMP session timeout in CyberArk without modifying target server sshd_config ?

L2 Linker

Most of the target servers (Unix/Linux/AIX)are configured to timeout of 5 mins.

before Cyberark users used to maintain connection timeout settings with their ssh client.

 

With PSMP connection they lost ability to do with SSH client.

we configured all PSMP servers to 20 mins timeout, but all target servers are still set to 5 mins timeout. is there a way to manage this session timeout with CyberArk settings instead of changing this sshd_config on thousands of target servers.

 

Thanks

8 REPLIES 8

L6 Presenter

Not sure if it is really a thing which can be done on Cyber Ark side, even if you set infinite timeout at PSMP side, it will still be governed by target machine timeout.

L4 Transporter

Not sure if it is really a thing which can be done on Cyber Ark side, even if you set infinite timeout at PSMP side, it will still be governed by target machine timeout.

L0 Member

I have same question, increased the target machine timeout to 30 min but when logged in using PSMP ("ssh actualuser@targetuser@targetsystem@PSMPServer") it still closes the session just after 5 min. This is impacting 100 of users who even though they have run the session (ssh -o "ServerAliveInterval 60" actualuser@targetuser@targetsystem@PSMPServer) . Is there a solution/fix or conf changes that need to done at PSMP server let say "keep session alive" for 30 min.

L1 Bithead

You can do something like this since the target machine is actually being connected to by putty not ssh.

 

home/PSMShadowUser/.config/putty/sessions/Default%20Settings

 

With the following parameters:

PingInterval=0

PingIntervalSecs=10

 

This means that the ping will be sent every (PingInterval*60)+PingIntervalSecs which means that every PingInterval minutes + PingIntervalSecs the ping will occur.

Also, make sure that the path exists and has the right permissions for PSMShadowUser.

 

This is essentially the same thing we are doing in the Windows registry.

 

 

L1 Bithead

The client I did this with is running 10.7 \ 10.8.

L2 Linker

We just found this issue with 10.10 as well. I can log directly onto a PSMP server and stay on it for extended periods of inactivity. I can SSH from that direct PSMP connection to a different endpoint and its the same. If I go through CA to get onto that same end point I get dropped after 5 minutes.

L0 Member

We've found this to work in 10.8.

 

# more /home/PSMShadowUser/.putty/sessions/Default%20Settings

PingInterval=0

PingIntervalSecs=60

 

Also, verify the client from which the connection is being established has the keepalive set (In PuTTY: Connection --> Seconds between keepalives)

Thanks.

It worked for us (11.3) with a location :

/home/PSMShadowUser/.config/putty/sessions/Default%20Settings

 

Pinginterval is in minutes, PingIntervalSecs is seconds. for example, if you want 63 secondes, this is parameter:

PingInterval=1 PingIntervalSecs=3 TCPNoDelay=1 TCPKeepalives=1

Pay attention to authorisation (is you create this file as root, it will not work ).

-rw-r-----. 1 PSMShadowUser PSMShadowUser 63 Feb 3 17:44 /home/PSMShadowUser/.config/putty/sessions/Default%20Settings

 

regards

Antoine

  • 3516 Views
  • 8 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!