---
title: Configuration example of ForceCommand for HP-UX
description: This is an example configuration of PingID SSH for ForceCommand on HP-UX.
component: pingid
page_id: pingid:pingid_integrations:pid_configuration_example_forcecommand_hp_ux
canonical_url: http://docs.pingidentity.com/pingid/pingid_integrations/pid_configuration_example_forcecommand_hp_ux.html
revdate: January 28, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Configuration example of ForceCommand for HP-UX

This is an example configuration of PingID SSH for ForceCommand on HP-UX.

## About this task

|   |                                                                                 |
| - | ------------------------------------------------------------------------------- |
|   | This assumes that you specified `--prefix=/usr/local` in the configure command. |

## Steps

1. Edit the sshd\_config file:

   ```
   sudo vi /opt/ssh/etc/sshd_config
   ```

2. Add these lines to the end of the file:

   ```
   #enable pingid for all users
   ForceCommand /usr/local/sbin/pingid_fc
   ```

   |   |                                                                                                                                                                          |
   | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
   |   | Disable `PermitTunnel` and `AllowTcpForwarding` in the `sshd_config` file because tunneling and port forwarding are performed before PingID authentication is triggered. |

3. Restart the sshd service:

   ```
   sudo /sbin/init.d/secsh stop
   sudo /sbin/init.d/secsh start
   ```
