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

# Configuration example of ForceCommand for Solaris

This is an example configuration of PingID SSH for ForceCommand on Solaris.

## About this task

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

## Steps

1. Edit the `sshd_config` file.

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

   1. Add `pingid_fc` with its full path.

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

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

2. To apply the changes and activate PingID MFA integration with SSH, restart the sshd service.

   ```
   sudo service sshd restart
   ```
