Which configuration is needed to generate an RSA key for SSH on a router?
Click on the arrows to vote for the correct answer
A. B. C. D.C.
To generate an RSA key for SSH on a Cisco router, the following configuration steps are required:
phphostname <name>
Replace <name>
with the desired hostname for the router.
vbnetcrypto key generate rsa
This command generates a key pair with a default modulus size of 1024 bits. To specify a different modulus size, use the following command instead:
phpcrypto key generate rsa modulus <modulus-size>
Replace <modulus-size>
with the desired modulus size, such as 2048 or 4096 bits.
phpip ssh version 2 ip ssh time-out <seconds> ip ssh authentication-retries <num-retries>
The first command specifies that the router should use SSH version 2. The second and third commands specify the timeout and number of authentication retries for SSH sessions.
pythonline vty 0 4 transport input ssh
This command configures the VTY lines to accept SSH connections. The transport input ssh
command restricts access to the VTY lines to SSH only.
Once these steps are completed, the router is configured to accept SSH connections using RSA authentication.