SSH Secure Remote Access Configuration and Verification

15 soru

Soru 1Soru

A security review on an enterprise switch named Core-SW1 reveals that virtual terminal sessions allow plain-text remote management and bypass local account verification. To harden management access on Core-SW1, which TWO commands must be configured specifically under line VTY configuration mode (config-line) to enforce local account credentials and restrict incoming traffic exclusively to SSH?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: login local; transport input ssh

Cevap

The correct commands to configure under line VTY configuration mode are 'login local' and 'transport input ssh'.
Securing virtual terminal (VTY) lines requires configuration within line subconfiguration mode (config-line). The command 'login local' ensures that any user connecting via VTY lines must authenticate against locally configured username accounts. The command 'transport input ssh' locks down line access so that only encrypted SSH sessions are permitted, disabling clear-text protocols like Telnet.

Adım Adım Çözüm

1
Identify the CLI context required for line-specific remote access security controls.
Line configuration mode (config-line) is accessed via the command 'line vty 0 15'.
VTY lines handle inbound network connection sessions.
2
Select the line command that requires local database credentials.
The 'login local' command binds line authentication to local user accounts created in global configuration mode.
Without 'login local', VTY lines either request a simple line password or permit unauthenticated access.
3
Select the line command that filters inbound remote management traffic protocols.
The 'transport input ssh' command restricts incoming protocol traffic exclusively to SSH.
By default, Cisco IOS line VTY sessions allow incoming Telnet connections unless restricted.

Anahtar Kavram

VTY Line Security Configuration for SSH Access
Soru 2Soru

A network technician needs to verify the configured SSH version, authentication timeout, and maximum retry limits on a Cisco IOS switch named SW-Access-01. Which privileged EXEC mode command provides this specific operational summary?

Cevabı ve açıklamayı göster

Cevap: show ip ssh

Cevap

The command 'show ip ssh' displays global SSH status, protocol version, authentication timeout, and retry settings on a Cisco IOS device.
The command 'show ip ssh' displays global SSH server operational parameters on Cisco IOS, including whether SSH is enabled, the active version (v1 or v2), authentication timeout, and maximum authentication retries.

Adım Adım Çözüm

1
Identify the CLI verification requirement
The requirement asks for global SSH server settings including version, timeout, and retry limits.
Different verification commands display distinct aspects of remote access operations.
2
Distinguish between 'show ip ssh' and 'show ssh'
'show ip ssh' displays protocol configuration and status, while 'show ssh' displays active user connection sessions.
Understanding command output specificity is essential for Cisco IOS verification.

Anahtar Kavram

Cisco IOS SSH Verification Commands
Tahmini Süre:45s
Soru 3Soru

A network administrator is hardening remote management access on a gateway router named WAN-Edge01. The router already has a non-default hostname, a domain name configured (enterprise.net), and a 2048-bit RSA key generated. Security standards mandate that SSH Version 1 connections must be explicitly disabled and incoming VTY sessions must authenticate using the local router user database.

Which combination of commands satisfies these operational requirements?

Cevabı ve açıklamayı göster

Cevap: Execute 'ip ssh version 2' in global configuration mode and 'login local' in line vty configuration mode.

Cevap

Executing 'ip ssh version 2' in global configuration mode and 'login local' in line vty configuration mode satisfies both requirements by enforcing SSH version 2 and requiring local database authentication for incoming sessions.
The requirement asks to explicitly disable SSH v1 (enforce SSH v2) and require authentication via the local router database. Using 'ip ssh version 2' globally restricts remote SSH connections to version 2 only. Entering 'login local' under line vty configuration mode binds incoming terminal connections to the router's local user account database.

Adım Adım Çözüm

1
Enforce SSH Version 2 globally
Disables legacy SSH v1.5/v1 connections on the router
The command 'ip ssh version 2' restricts SSH connections strictly to SSH v2 protocols for security compliance.
2
Configure VTY lines for local authentication
Requires incoming VTY connections to authenticate against local user accounts
The command 'login local' under 'line vty 0 15' forces the Cisco IOS device to check username and password credentials defined in the local running configuration.

Anahtar Kavram

SSH Version 2 Enforcement and VTY Local Authentication
Soru 4Soru

A network administrator is deploying SSHv2 on a newly installed Cisco IOS branch gateway router named BR-GW01. Place the required CLI configuration tasks in the correct logical execution sequence from initial global configuration mode to final line security binding.

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

The correct operational sequence to configure SSHv2 on Cisco IOS is: 1) Set hostname and domain name to construct the FQDN, 2) Generate RSA keys with at least 768 bits modulus (e.g., 1024 bits), 3) Enforce SSH version 2 globally, 4) Create local user credentials, and 5) Configure line VTY for local login and SSH transport input.
The correct sequence follows the mandatory dependency hierarchy of Cisco IOS SSHv2 configuration. First, an FQDN must exist by defining a non-default host name and IP domain name. Second, an RSA key pair of at least 768 bits (1024 bits in this case) must be generated, which enables the SSH daemon. Third, 'ip ssh version 2' explicitly locks SSH to version 2. Fourth, local user credentials must be created in global configuration mode. Finally, virtual terminal lines (line vty) must be configured with 'login local' to use the local user database and 'transport input ssh' to restrict incoming traffic strictly to SSH.

Adım Adım Çözüm

1
Set Hostname and Domain Name
Defines the Fully Qualified Domain Name (FQDN) for the device (BR-GW01.enterprise.net).
Cisco IOS cannot generate RSA keys without an established FQDN because the key pair name is derived directly from the host name and domain name.
2
Generate RSA Cryptographic Key Pair
Creates the public/private RSA key pair and automatically enables the SSH server process.
An RSA modulus size of 768 bits or greater (such as 1024 or 2048 bits) is strictly required to support SSH version 2 operations.
3
Specify SSH Version 2
Globally locks SSH operations to version 2 only.
By default, Cisco IOS supports both SSH v1.5 and v2 upon key generation. Forcing version 2 eliminates vulnerability to v1 protocol negotiation downgrades.
4
Create Local User Credentials
Populates the local database with an administrative user account.
SSH connection attempts require user authentication; creating a local account provides local database verification when AAA is not using remote RADIUS/TACACS+ servers.
5
Bind Authentication and Transport Restrictions to Line VTY
Configures 'login local' and 'transport input ssh' on virtual terminal lines.
This step ensures inbound remote management connections require local username/password verification and explicitly blocks unencrypted protocols like Telnet.

Anahtar Kavram

Cisco IOS SSHv2 Configuration Dependencies and Deployment Sequence
Soru 5Soru

An administrator on a campus core switch named Core-SW1 is configuring SSH for secure management access. The administrator sets a hostname of Core-SW1 and attempts to run the command `crypto key generate rsa`, but receives the system message: `% Please define a domain-name first.` Which configuration command must be entered in global configuration mode to resolve this issue and allow key generation?

Cevabı ve açıklamayı göster

Cevap: ip domain-name example.com

Cevap

Configure an IP domain name using the global configuration command `ip domain-name example.com`.
Generating an RSA key pair on a Cisco IOS device requires both a non-default hostname and an IP domain name. The device uses these two parameters to form the fully qualified domain name (FQDN) that names the key pair. Executing `ip domain-name example.com` supplies the missing parameter so that `crypto key generate rsa` can run successfully.

Adım Adım Çözüm

1
Identify the prerequisite requirement for Cisco IOS RSA key pair generation.
Cisco IOS derives the default name of the RSA key pair from the device hostname appended with the IP domain name (e.g., Core-SW1.example.com).
Without an IP domain name explicitly configured, the router or switch cannot form the key pair name.
2
Select the proper command to define the IP domain name.
Executing `ip domain-name example.com` in global configuration mode defines the domain name context.
This satisfies the missing prerequisite indicated by the CLI prompt '% Please define a domain-name first.'

Anahtar Kavram

SSH Prerequisite Configuration and RSA Key Pair Naming
Tahmini Süre:1m 0s
Soru 6Soru

A network administrator is configuring secure management access on a newly deployed access switch named SW-ACCESS-03. The switch already has a non-default hostname and an active IP domain name configured. The organization requires that all remote administrative sessions use SSH version 2 and that legacy Telnet connections are explicitly blocked. Which two CLI configuration steps are required to complete this task? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Execute 'crypto key generate rsa modulus 2048' in global configuration mode.; Execute 'transport input ssh' under the VTY line configuration mode.

Cevap

The required steps are generating an RSA key pair with a modulus size of 2048 bits in global configuration mode and applying 'transport input ssh' under VTY line configuration mode.
Generating an RSA key with a 2048-bit modulus enables SSH version 2 on Cisco IOS, as SSH v2 requires a key size of at least 768 bits. Additionally, configuring 'transport input ssh' on the VTY lines enforces SSH as the sole inbound management protocol, effectively blocking insecure Telnet connections.

Adım Adım Çözüm

1
Generate an RSA key pair required for SSH operational readiness.
Executing 'crypto key generate rsa modulus 2048' creates an encryption key pair. Because the modulus is greater than or equal to 768 bits, SSH version 2 capability is enabled.
Cisco IOS requires an RSA key pair to enable the SSH server daemon. Modulus sizes lower than 768 bits restrict the daemon to SSH v1.5.
2
Restrict incoming line vty protocols to SSH only.
Entering line vty configuration mode and running 'transport input ssh' restricts incoming management connections exclusively to encrypted SSH sessions.
By default, VTY lines may allow Telnet or all protocols. Setting transport input to SSH prevents cleartext management traffic.

Anahtar Kavram

SSHv2 Prerequisites and VTY Protocol Binding
Soru 7Soru

A network engineer is inspecting the CLI configuration of a Layer 3 switch named Site-Core-01 to ensure secure administrative access. The switch currently has a valid hostname, a configured IP domain name, and active local user accounts. The line vty configuration displays the following output:

text
Site-Core-01# show running-config | section line vty
line vty 0 15
transport input telnet
login local

Which command executed within line configuration mode will restrict remote management sessions exclusively to SSH while enforcing authentication against the local user database?

Cevabı ve açıklamayı göster

Cevap: transport input ssh

Cevap

Executing 'transport input ssh' under VTY line configuration mode restricts inbound remote access strictly to SSH sessions.
Executing the command 'transport input ssh' under the VTY line configuration mode restricts inbound remote access to encrypted SSH sessions only. Because 'login local' is already present, the device will authenticate connecting users against its local user database over SSH.

Adım Adım Çözüm

1
Identify the current transport input configuration on the VTY lines
The current setting 'transport input telnet' permits only unencrypted Telnet connections.
By default or explicit command, VTY lines may allow Telnet, which transmits data in cleartext.
2
Determine the line mode command required to enforce SSH remote access exclusively
Applying 'transport input ssh' under 'line vty 0 15' replaces 'telnet' with 'ssh'.
The 'transport input' command controls which protocols are permitted to connect to the switch's virtual terminal lines.

Anahtar Kavram

VTY Line Transport Input Binding and Hardening
Soru 8Soru

A network administrator is hardening remote management access on a factory-reset Cisco IOS router currently running default factory settings. In what sequential order must the administrator execute the CLI commands to properly configure SSHv2 access using local user authentication?

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

The correct sequence starts with setting a non-default hostname, followed by defining the IP domain name, generating the RSA key pair (modulus >= 768 bits), creating a local user account, and finally configuring the VTY lines with local authentication and SSH transport binding.
Configuring SSHv2 on Cisco IOS requires satisfying dependencies in order: first, set a non-default hostname; second, assign an IP domain name (forming the FQDN); third, generate the RSA key pair with at least 768 bits; fourth, create local user credentials; and fifth, configure VTY lines with `login local` and `transport input ssh`.

Adım Adım Çözüm

1
Set a non-default hostname using `hostname RTR-CORE-02`.
The router host prompt updates from `Router` to `RTR-CORE-02`.
RSA key generation requires a host name other than the default 'Router'.
2
Configure the IP domain name using `ip domain-name enterprise.net`.
The FQDN `RTR-CORE-02.enterprise.net` is established.
Cisco IOS constructs the key pair name using the format `<hostname>.<domain_name>`.
3
Generate the RSA key pair using `crypto key generate rsa modulus 2048`.
The RSA keys are generated and SSH is enabled on the device.
A modulus size of 768 bits or higher enables SSHv2.
4
Create a user entry using `username secadmin secret P@ssw0rd123`.
A user credential entry is placed into the local running configuration.
SSH requires an authentication database for remote login verification.
5
Enter VTY configuration (`line vty 0 4`) and execute `login local` and `transport input ssh`.
VTY lines require local credentials and accept only SSH traffic.
This completes the binding between remote access lines, cryptographic transport, and authentication.

Anahtar Kavram

SSHv2 Configuration Prerequisites and Execution Order
Tahmini Süre:1m 30s
Soru 9Soru

A network engineer is troubleshooting secure remote management access on an enterprise router named EDGE-RTR-01. The router is currently permitting remote sessions, but output verification shows that SSH version 1.5 is active instead of SSH version 2.

The engineer gathers the following CLI output from EDGE-RTR-01:

text
EDGE-RTR-01# show ip ssh
SSH Enabled - version 1.5
Authentication timeout: 120 secs; Authentication retries: 3
EDGE-RTR-01# show running-config | include crypto key
crypto key generate rsa modulus 512

Which configuration change must be performed on EDGE-RTR-01 to support and enforce SSH version 2?

Cevabı ve açıklamayı göster

Cevap: Re-generate the RSA key pair using a modulus size of at least 768 bits and execute the command ip ssh version 2.

Cevap

Re-generate the RSA key pair using a modulus size of at least 768 bits and execute the command ip ssh version 2.
In Cisco IOS, SSH version 2 requires an RSA key pair with a minimum length of 768 bits. When a key size under 768 bits (such as 512 bits) is generated, Cisco IOS defaults to SSH version 1.5. Re-generating the key with a length of at least 768 bits (or 1024/2048 bits) and issuing 'ip ssh version 2' enables and enforces SSHv2.

Adım Adım Çözüm

1
Analyze the CLI output from 'show ip ssh' and 'show running-config'.
The current RSA key length is 512 bits, causing the router to operate in SSH version 1.5 mode.
Cisco IOS requires a minimum RSA key modulus length of 768 bits to enable SSHv2 capabilities.
2
Determine the necessary commands to upgrade to SSHv2.
Generating a new RSA key pair with a modulus of 768 bits or higher (typically 1024 or 2048 bits) allows SSHv2 operation. Executing 'ip ssh version 2' explicitly enforces SSHv2.
A 512-bit key size is cryptographically insufficient for SSHv2 negotiation in Cisco IOS.

Anahtar Kavram

SSH Version 2 RSA Key Size Prerequisites
Soru 10Soru

A network administrator is configuring SSH version 2 on a freshly unpacked Cisco IOS router. Which TWO configuration steps are required before the router will allow the generation of RSA host keys using the 'crypto key generate rsa' command? (Choose two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure a non-default device hostname using the 'hostname' command; Configure an IP domain name using the 'ip domain name' command

Cevap

The correct prerequisites are configuring a non-default hostname and setting an IP domain name.
Generating RSA keys on Cisco IOS depends directly on having a fully qualified domain name (FQDN). The FQDN is formed by combining the device hostname and the configured IP domain name. Therefore, both setting a unique hostname and defining an IP domain name are mandatory prerequisites prior to issuing the RSA key generation command.

Adım Adım Çözüm

1
Identify the requirement for RSA key generation in Cisco IOS
The router uses the combination of the hostname and IP domain name to construct the Fully Qualified Domain Name (FQDN) key pair label.
Without a custom hostname (other than the default 'Router') and an IP domain name, the key generation command will fail.
2
Differentiate prerequisite host key configuration steps from VTY line binding steps
Hostname and domain name must be configured before executing 'crypto key generate rsa'. Line VTY commands like 'login local' and 'transport input ssh' are applied afterward to manage connection access.
RSA key creation is a system-level cryptographic prerequisite for initializing the SSH daemon.

Anahtar Kavram

Prerequisites for generating RSA key pairs for SSH remote access on Cisco IOS devices
Soru 11Soru

A network administrator is troubleshooting remote access on a branch gateway router (Branch-GW). SSH version 2 has been configured, but remote management attempts over SSH fail immediately with a transport layer connection error, whereas Telnet connections are unexpectedly accepted. The administrator collects the following configuration and status outputs from the router:

text
Branch-GW# show ip ssh
SSH Enabled - version 2.0
Authentication timeout: 60 secs; Authentication retries: 3
Device Mode: SSH Server
RSA Key size: 2048 bits

Branch-GW# show running-config | section line vty
line vty 0 4
access-class MGMT-ACCESS in
login local
transport input telnet
line vty 5 15
access-class MGMT-ACCESS in
login local
transport input telnet

Which configuration change must be applied to Branch-GW to resolve the connection issue and enforce secure SSH access on all VTY lines?

Cevabı ve açıklamayı göster

Cevap: Execute transport input ssh under line vty 0 15 to allow inbound SSH sessions.

Cevap

Execute transport input ssh under line vty 0 15 to allow inbound SSH sessions.
The output from 'show running-config' demonstrates that all virtual terminal lines (vty 0 15) are configured with 'transport input telnet'. This restricts incoming management traffic strictly to Telnet (TCP port 23) and causes the router to reject incoming SSH (TCP port 22) connection requests at the line level. Changing the setting to 'transport input ssh' permits SSH inbound sessions.

Adım Adım Çözüm

1
Analyze 'show ip ssh' verification output
SSH v2 is active and an RSA key of 2048 bits has been properly generated.
Verifies that global SSH preconditions (hostname, domain name, RSA key pair generation) are fully met.
2
Inspect VTY line configuration under 'show running-config'
'transport input telnet' is explicitly binding VTY lines 0 through 15 to accept only unencrypted Telnet traffic.
Even when SSH service is enabled globally, Cisco IOS VTY lines refuse incoming SSH transport connections if SSH is omitted from transport input.
3
Identify the required CLI configuration command
Navigate to 'line vty 0 15' and issue 'transport input ssh' (or 'transport input ssh telnet').
Re-enables inbound SSH connections across all virtual terminal lines.

Anahtar Kavram

VTY Line Transport Protocol Binding
Soru 12Soru

A network administrator is performing an initial configuration of SSH version 2 on a new branch router (Branch-R1). Place the required configuration steps in the correct sequential order from first to last.

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

The correct sequence for configuring SSH v2 on a Cisco IOS device is: first, set a non-default hostname; second, configure an IP domain name; third, generate the RSA key pair (minimum 768 bits for SSH v2); and fourth, configure line VTY settings to accept SSH input and require local login authentication.
SSH configuration in Cisco IOS follows a strict dependency sequence. First, a non-default hostname and an IP domain name must be defined so that the system has a valid Fully Qualified Domain Name (FQDN). Second, generating an RSA key pair using the FQDN automatically activates the SSH service. Finally, line VTY settings must be configured to bind incoming management traffic to SSH and enforce local login credentials.

Adım Adım Çözüm

1
Set a non-default hostname (e.g., hostname Branch-R1).
Establishes the host portion of the router's FQDN.
The default router hostname 'Router' is invalid for RSA key pair creation.
2
Define an IP domain name (e.g., ip domain-name cisco.com).
Completes the router's FQDN (Branch-R1.cisco.com).
Cisco IOS uses the FQDN as the name label when generating RSA keys.
3
Generate RSA keys with at least 768 bits (e.g., crypto key generate rsa modulus 1024).
Activates the SSH server subsystem on the device.
SSH v2 requires an RSA key pair; key sizes below 768 bits force the router to default to SSH v1.5.
4
Configure VTY lines (line vty 0 4) with transport input ssh and login local.
Disables unencrypted management (Telnet) and forces authentication against local device credentials.
Ensures remote sessions use secure SSH transport and authenticate via local database users.

Anahtar Kavram

Cisco IOS SSH Configuration Prerequisites and Sequence
Soru 13Soru

An engineer is configuring secure remote management on a central router named Edge-Rtr1. The device has a valid hostname, an IP domain name configured, a 1024-bit RSA key pair generated, and a local administrator user defined in global configuration mode. The virtual terminal lines are configured with transport input ssh. However, when connecting via SSH from a remote client, the router prompts only for a password instead of requesting a username, causing all login attempts to fail. Which configuration change on Edge-Rtr1 resolves this issue?

Cevabı ve açıklamayı göster

Cevap: Apply the login local command under line vty configuration mode.

Cevap

Apply the login local command under line vty configuration mode to instruct the switch/router to authenticate against the local user database.
The correct answer specifies applying the 'login local' command under line vty configuration mode. When SSH is enabled, Cisco IOS requires an authentication source capable of verifying usernames and passwords. Standard 'login' only checks for a single line-level password. Applying 'login local' directs the VTY lines to validate incoming credentials against usernames created in the local database.

Adım Adım Çözüm

1
Analyze the reported authentication symptom
The router prompts only for a password without asking for a username.
By default, line vty uses standard line authentication ('login'), which expects a password configured directly on the line via the 'password' command rather than searching local user accounts.
2
Determine the required VTY configuration command
Adding 'login local' under line vty 0 4 binds authentication to the local running-config database.
SSH requires username-based authentication. Without 'login local' (or AAA), the VTY lines cannot process the username sent by the SSH client.

Anahtar Kavram

VTY Line Local Authentication Binding for SSH
Soru 14Soru

A network administrator is verifying SSH remote access on a newly deployed enterprise switch named Dist-SW2. The hostname and IP domain name have been configured, and the administrator generated host keys using the CLI command `crypto key generate rsa modulus 512`. When administrative users attempt to establish remote sessions using SSH version 2, the connections fail. When the administrator executes the `show ip ssh` command on Dist-SW2 to inspect the SSH operational state, which status line is displayed in the output?

Cevabı ve açıklamayı göster

Cevap: SSH Enabled - version 1.5

Cevap

The switch displays 'SSH Enabled - version 1.5' because the generated RSA key modulus is 512 bits, which falls below the 768-bit threshold required for SSH version 2.
In Cisco IOS, SSH version 2 requires an RSA key pair with a minimum modulus size of 768 bits (1024 bits or higher is recommended). When an administrator generates an RSA key with a modulus of 512 bits, Cisco IOS successfully creates the key but defaults the SSH daemon to SSH version 1.5. Consequently, running `show ip ssh` displays 'SSH Enabled - version 1.5', and clients attempting to connect strictly using SSH v2 will be rejected.

Adım Adım Çözüm

1
Analyze SSH Version Requirements for Cisco IOS
SSH version 2 requires an RSA key pair with a minimum modulus size of 768 bits.
Cryptographic security standards in Cisco IOS enforce longer keys for SSH v2 operation.
2
Evaluate the Impact of generating a 512-bit RSA Key
The command `crypto key generate rsa modulus 512` succeeds, but forces Cisco IOS to run SSH version 1.5.
Keys below 768 bits are insufficient for SSH v2 key exchange, defaulting the daemon to SSH v1.5.
3
Correlate with CLI Verification Commands
Executing `show ip ssh` confirms the status as 'SSH Enabled - version 1.5'.
This explains why SSH version 2 client connection attempts were rejected.

Anahtar Kavram

SSH Version and RSA Key Modulus Requirements
Soru 15Soru

A network administrator is deploying SSH version 2 for secure management on a Layer 3 switch named HQ-AggSwitch01. The switch already has a non-default hostname configured and local user accounts created. Which TWO configuration steps must be completed to successfully enable SSH version 2 and restrict remote management access strictly to SSH on the virtual terminal lines? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Define an IP domain name and generate an RSA key pair with a modulus length of at least 768 bits.; Configure transport input ssh and login local within line vty configuration mode.

Cevap

To enable SSH version 2 and secure VTY access, the administrator must configure an IP domain name with an RSA key pair of at least 768 bits, and configure 'transport input ssh' with 'login local' under line vty configuration mode.
Enabling SSH version 2 requires defining an IP domain name and generating an RSA key pair with at least 768 bits (768–2048 bits). Furthermore, securing the virtual terminal lines requires configuring 'login local' to authenticate users against local credentials and 'transport input ssh' to disable unencrypted protocols.

Adım Adım Çözüm

1
Verify prerequisite global SSH settings
Ensure a non-default hostname is set, configure an IP domain name using 'ip domain-name <domain>', and generate RSA keys using 'crypto key generate rsa'.
Cisco IOS automatically uses the hostname and domain name to form the Fully Qualified Domain Name (FQDN) needed for RSA key pair generation.
2
Ensure SSH version 2 operational compliance
Specify an RSA key modulus of 768 bits or greater (such as 1024 or 2048 bits).
Key sizes under 768 bits fail to support SSH version 2 and cause the device to fall back to SSH version 1.5.
3
Configure VTY line security and protocol binding
Under 'line vty 0 15', enter 'login local' to use local user database authentication and 'transport input ssh' to block unencrypted management protocols like Telnet.
Without 'login local', local user authentication will not be enforced, and without 'transport input ssh', plain-text Telnet access might remain permitted.

Anahtar Kavram

SSH Version 2 Configuration Prerequisites and VTY Line Securing
SSH Secure Remote Access Configuration and Verification Alıştırma Soruları — Cisco CCNA | Examkin