JAEN

Cisco IOS

SSH有効化(crypto key)

CautionEnable SSH access

(config)# crypto key generate rsa modulus 2048

Generates the RSA key and locks vty to SSH — hostname and domain-name must be set before key generation.

Examples

  • line vty 0 4 transport input sshSSH-only vty lines

Syntax

hostname/ip domain-name設定 → crypto key generate rsa modulus 2048 → line vty: transport input ssh

Before you run it

Changing transport cuts telnet access.

Related commands

You can carry a laptop to the rack. Signal will not follow.

Check syntax standing in front of the hardware, with no connection at all. Free to install, no ads.

Get it free on the App Store