Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


show security ike pre-shared-key



Display the Internet Key Exchange (IKE) preshared key used by the Virtual Private network (VPN) gateway to authenticate the remote access user. Use either master-key or gateway option to get the master presharedkey.


  • master-key master-key —(Optional) Primary preshared key.

  • user-id user-id —(Optional) IKE user ID value.

  • gateway gateway_name—(Optional) Label of the VPN gateway set with master preshared key.

Required Privilege Level


Sample Output

show security ike pre-shared-key user-id

show security ike pre-shared-key gateway gateway_name user-id user-id

Release Information

Command introduced in Junos OS Release 8.5.

gateway option is introduced in Junos OS Release 21.1R1.