cisco IOS XE 17.16.x — Configuring the SSH Server to Perform RSA-Based User Authentication

Configuring the SSH Server to Perform RSA-Based User Authentication Perform this task to configure the SSH public key for NETCONF-YANG to authenticate users. SUMMARY STEPS 1. enable 2. configure terminal 3. ip ssh pubkey-chain 4. username username 5. key-string 6. end DETAILED STEPS Procedure Model-Driven Programmability Configuring the SSH Server to Perform RSA-Based User Authentication Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 ip ssh pubkey-chain Example:

Device(config)# ip ssh pubkey-chain Configures SSH-RSA keys for user and server authentication on the SSH server and enters public-key configuration mode. • The user authentication is successful if the RSA public key stored on the server is verified with the public or the private key pair stored on the client. Step 4 username username Example: Device(conf-ssh-pubkey)# username user1 Configures the SSH username and enters public-key user configuration mode. Step 5 key-string Example: Device(conf-ssh-pubkey-user)# key-string Specifies the RSA public key of the remote peer and enters public-key data configuration mode.

Note You can obtain the public key value from an open SSH client; that is, from the .ssh/id rsa.pub file. _ Step 6 end Example: Exits public-key data configuration mode and returns to privileged EXEC mode. Programmability Configuration Guide, Cisco IOS XE 17.16.x 185