Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show security ike pre-shared-key

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
         show security ike pre-shared key       
         master-key     <master-key>
         user-id         <user-id>
         gateway        <gateway_name>

Description

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.

Options

  • 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

view

Sample Output

show security ike pre-shared-key user-id

content_copy zoom_out_map
user@host> show security ike pre-shared-key user-id a@example.net master-key example
Preshared Key:3b33ec3631a561ec5a710f5d02f208033b108bb4

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

content_copy zoom_out_map
user@host> show security ike pre-shared-key gateway HUB_GW user-id user1@juniper.net
Pre-shared key: 79e4ea39f5c06834a3c4c031e37c6de24d46798a

Release Information

Command introduced in Junos OS Release 8.5.

gateway option is introduced in Junos OS Release 21.1R1.

footer-navigation