Host Key is not being cached on PSMP server
Symptom
When a user connects to a UNIX machine via PSMP the system prompts to save the key:
The server's host key does not match the one PuTTY has cached in the registry. This means that either the server administrator has changed the host key, or you have actually connected to another computer pretending to be the server. The new dss key fingerprint is: ssh-dss 1024 <KEY> If you were expecting this change and trust the new key, enter "y" to update PuTTY's cache and continue connecting. If you want to carry on connecting but without updating the cache, enter "n". If you want to abandon the connection completely, press Return to cancel. Pressing Return is the ONLY guaranteed safe choice. Update cached key? (y/n, Return cancels connection) WARNING - POTENTIAL SECURITY BREACH!
Environment
11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM) PSMP
Cause
When a user connect for the first time to an UNIX machine, Key is not being cached because PSMShadow users who launch the SSH client cannot access the keys..
The next time the user logs on, the prompt will appear again.
Resolution
1. Create a directory and set the required permissions, using the following commands:
mkdir /.lcache
chmod 30 /.lcache
chown :PSMShadowUsers /.lcache
2. Create the file that indicates the location of the library:
echo “export PUTTYDIR=/.lcache” > /set_tmp_conf
3. Run the following commands:
cd / . set_tmp_conf
Make sure there is a space between “.” and the name of the file.
4. Restart the psmp service:
/etc/rc.d/init.d/psmpsrv stop
/etc/rc.d/init.d/psmpsrv start
5. Run the script (set_tmp_conf) with root user
If step 5 doesn't work, try step 6
6. Add the following line to /etc/sudoers file:
Defaults env_keep += "PUTTYDIR"
Additional Information
Details
SYMPTOM:
When a user connects to a UNIX machine via PSMP the system prompts to save the key
The server's host key does not match the one PuTTY has
cached in the registry. This means that either the
server administrator has changed the host key, or you
have actually connected to another computer pretending
to be the server.
The new dss key fingerprint is:
ssh-dss 1024 <KEY>
If you were expecting this change and trust the new key,
enter "y" to update PuTTY's cache and continue connecting.
If you want to carry on connecting but without updating
the cache, enter "n".
If you want to abandon the connection completely, press
Return to cancel. Pressing Return is the ONLY guaranteed
safe choice.
Update cached key? (y/n, Return cancels connection) WARNING - POTENTIAL SECURITY BREACH!
PROBLEM:
When a user connect for the first time to an UNIX machine, Key is not being cached because PSMShadow users who launch the SSH client cannot access the keys..
The next time the user logs on, the prompt will appear again.
SOLUTION:
On the PSMP machine, do the following:
1. Create a directory and set the required permissions, using the following commands:
mkdir /.lcache
chmod 30 /.lcache
chown :PSMShadowUsers /.lcache
2. Create the file that indicates the location of the library:
echo “export PUTTYDIR=/.lcache” > /set_tmp_conf
3. Run the following commands:
cd / . set_tmp_conf
Make sure there is a space between “.” and the name of the file.
4. Restart the psmp service:
/etc/rc.d/init.d/psmpsrv stop
/etc/rc.d/init.d/psmpsrv start
5. Run the script (set_tmp_conf) with root user
If step 5 doesn't work, try step 6
6. Add the following line to /etc/sudoers file:
Defaults env_keep += "PUTTYDIR"