Note: This assumes that you specified --prefix=/usr/local in the configure command.
  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