Skip to main content
AtiT
New Member
Nov 23, 2017 3:55 PM UTC
Question

Fortigate SSH Server Generate New RSA Key Pair

Hello,

Does anybody know how to generate a FortiGate SSH Server new RSA Key Pair - if it is possible at all.

Where is the default RSA key pair located on a FortiGate?

 

$ ssh -l admin x.x.x.x The authenticity of host 'x.x.x.x (x.x.x.x)' can't be established. RSA key fingerprint is 69:b7:62:fe:57:0b:bb:db:c3:87:bf:12:95:d0:c5:5d.

Are you sure you want to continue connecting (yes/no)? 

 

Thanks.

    28 replies

    virtualj
    New Member
    Oct 31, 2018 10:54 AM UTC

    Hello, have you found an answer?

    I'm looking how to align ssh key between firewalls in the same cluster.

     

    thank you, regards.

    Translate
    emnoc
    New Member
    Oct 31, 2018 9:13 PM UTC

    You can upgrade the unit that will create a new key, if you swap act/std ( assuming  ACT/STD ) that would present the new  cert. So why do you need to  create a new  ssh-key ?

     

    As far as the key it's stored locally  in the  file path   and not  directly accessible ( look at the  RSA key )

     

    http://socpuppet.blogspot.com/2014/08/your-fortigate-is-not-as-secured-as-you.html

     

    Ken Felix

     

    Translate
    AlexFeren
    New Member
    Apr 23, 2021 1:58 PM UTC

    user185953 wrote:
    I think it would be a security bug if you could get the private key.

     

    to get it from within Fortigate's administration session.

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024