---
title: Mapping usernames with ForceCommand
description: Mapping usernames enables PingID SSH for users with specific public keys.
component: pingid
page_id: pingid:pingid_integrations:pid_mapping_usernames_with_forcecommand
canonical_url: http://docs.pingidentity.com/pingid/pingid_integrations/pid_mapping_usernames_with_forcecommand.html
revdate: January 25, 2024
section_ids:
  steps: Steps
  example: Example:
---

# Mapping usernames with ForceCommand

Mapping usernames enables PingID SSH for users with specific public keys.

## Steps

* Use the command option in the `~/.ssh/authorized_keys` file.

  ### Example:

  ```
  command="/usr/sbin/pingid_fc -u john" ssh-rsa AAA..../KO== john@luni.com
  command="/usr/sbin/pingid_fc -u david" ssh-rsa BAB...JIL== david@luni.com
  ```

  |   |                                                                        |
  | - | ---------------------------------------------------------------------- |
  |   | This procedure assumes that PingID was installed with `--prefix=/usr`. |
