Skip to main content
jefazo92
Explorer II
July 28, 2024
Question

How verify SSH version running on a Fortigate?

  • July 28, 2024
  • 4 replies
  • 5683 views

Hi, I would like to know if there is a command to find the SSH version running on my Fortigate.

4 replies

AEK
SuperUser
SuperUser
July 28, 2024

Hi Jefazo

Try this command from your laptop:

$ nmap -p22 -sV <IP-address-of-your-FG>

 

AEK
arahman
Staff
Staff
July 29, 2024

@jefazo92 please follow the article below to check the SSH version on fortigate
https://community.fortinet.com/t5/FortiManager/Technical-Tip-How-to-verify-the-running-SSH-server-version/ta-p/245855

jbernabe
Staff
Staff
July 31, 2024

Dear jefazo92,

To verify the SSH version running on a FortiGate, you can use the following command in the CLI:

1. Log in to the FortiGate CLI.

2. Enter the command: ``` get system info admin ssh ```

3. Look for the output that specifies the SSH version. It will typically indicate if SSH v2 is enabled and the port number it is running on.

This command will display information about the SSH configuration on the FortiGate unit, including the SSH version and port number.

Best Regards,
Jef

boneyard
Valued Contributor
July 31, 2024

Is there a specific reason you want to know it? Perhaps due to CVE-2024-6387 / RegreSSHion?

 

Then look here: https://community.fortinet.com/t5/Support-Forum/CVE-2024-6387-RegreSSHion/td-p/324182