SRX Services Gateway
SRX Services Gateway

How do I change the key length of an RSA key?

‎07-31-2019 09:38 PM

Use SSH to communicate with the management port.
What is the key length of the default RSA key? 2048?


How do I change the key length of an RSA key

 

The version of JUNOS is version 15.1X49-D170.4.


Thank you.

1 REPLY 1
SRX Services Gateway

Re: How do I change the key length of an RSA key?

‎07-31-2019 10:05 PM

Default RSA key length is 2048. You can verify it using below commands:

ssh-keygen -lf /etc/ssh/ssh_host_rsa_key

To change key length:

ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key

 

Thanks,
Nellikka
JNCIE x3 (SEC #321; SP #2839; ENT #790)
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!