Configuring the Cisco SSH Server to Perform User Authentication Procedure Secure Shell Version 2 Support Configuring the Cisco SSH Server to Perform 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 hostname name Example: Device(config)# hostname host1 Specifies the hostname. Step 4 ip domain name name Example: host1(config)# ip domain name name1 Defines a default domain name that the Cisco software uses to complete unqualified hostnames. Step 5 crypto key generate rsa Example:
host1(config)# crypto key generate rsa Generates RSA key pairs. Step 6 ip ssh pubkey-chain Example: host1(config)# ip ssh pubkey-chain Configures public keys for user and server authentication on the SSH server and enters public-key configuration mode. • The user authentication is successful if the public key stored on the server is verified with the public or the private key pair stored on the client. Step 7 username username Example: host1(conf-ssh-pubkey)# username user1 Configures the SSH username and enters public-key user configuration mode. Step 8 key-string Example:
host1(conf-ssh-pubkey-user)# key-string Specifies the 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. _ Secure Shell Version 2 Support 8