How to Implement SSH Decryption on a Palo Alto Networks Device
PAN-OS can decrypt and inspect inbound and outbound SSH connections passing through the firewall. For SSH decryption, there is no certificate necessary. The key used for decryption is automatically generated when the firewall boots up. During the bootup process, the firewall checks to see if there is an existing key. If not, a key is generated. This key is for decrypting SSH sessions for all VSYS configured on the device. The same key is used for decrypting all SSH v2 sessions.
- Go to Policies > Decryption on the web UI.
- Create a decryption rule and specify the zones where the ssh decryption should be performed.
- You can also create a decryption profile to be applied to the rule:
- Commit the change.
The firewall sessions that are subject to decryption are identified by an asterisk. To view these sessions, use the filter “match *” as shown below:
> show session all | match *
36496 ssh ACTIVE FLOW * 10.16.0.34/trust/6
Note: The asterisk is used to identify both SSL and SSH decrypted sessions.
For more information on port forwarding inside SSH, see: Details on Port Forwarding Inside SSH.