Cisco Systems IPS4510K9 manual Add an entry to the known hosts list, Sensorconfig# ssh host-key

Models: IPS4510K9

1 854
Download 854 pages 14.35 Kb
Page 115
Image 115

Chapter 3 Setting Up the Sensor

Configuring SSH

Caution When you use the ssh host-keycommand, the SSH server at the specified IP address is contacted to obtain the required key over the network. The specified host must be accessible at the moment the command is issued. If the host is unreachable, you must use the full form of the command, ssh host-keyip-addressrsa1-key[key-modulus-lengthpublic-exponentpublic-modulus], to confirm the fingerprint of the key displayed to protect yourself from accepting the key of an attacker.

For SSHv2, use the ssh host-keyip-addressrsa-keykey command to add an entry to the known hosts list.

The following options apply:

ip address—Specifies the IP address to add to the system.

rsa-key—Specifies the RSA (SSHv2) key details.

key—Specifies the Base64 encoded public key.

rsa1-key—Specifies the RSA1 (SSHv1) key details:

key-modulus-length—Specifies an ASCCI decimal integer in the range[511, 2048].

public-exponent—Specifies an ASCII decimal integer in the range [3, 2^32].

public-modulus—Specifies an ASCII decimal integer, x, such that (2^(key-modulus-length-1)) < x < (2^(key-modulus-length)).

To add a host to the SSH known hosts list, follow these steps:

Step 1 Log in to the CLI using an account with administrator or operator privileges.

Step 2 Enter configuration mode.

sensor# configure terminal

Step 3 Add an entry to the known hosts list.

sensor(config)# ssh host-key 10.16.0.0

Bubble Babble is xucis-hehon-kizog-nedeg-zunom-kolyn-syzec-zasyk-symuf-rykum-sexyx

Would you like to add this to the known hosts table for this host?[yes]

The Bubble Babble appears. You are prompted to add it to the known hosts list.

If the host is not accessible when the command is issued, this message appears.

Error: getHostSshKey : Failed to fetch RSA key

Step 4 Enter yes to have the fingerprint added to the known hosts list.

Step 5 Verify that the host was added.

sensor(config)# exit

sensor# show ssh host-keys

10.89.146.110

Step 6 View the key for a specific IP address.

sensor# show ssh host-keys 10.16.0.0

1024 35

139306213541835240385332922253968814685684523520064131997839905113640120217816869696708721

704631322844292073851730565044879082670677554157937058485203995572114631296604552161309712

601068614812749969593513740598331393154884988302302182922353335152653860589163651944997842

874583627883277460138506084043415861927

Bubble Babble: xebiz-vykyk-fekuh-rukuh-cabaz-paret-gosym-serum-korus-fypop-huxyx sensor#

 

 

Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 7.2

 

 

 

 

 

 

OL-29168-01

 

 

3-47

 

 

 

 

 

Page 115
Image 115
Cisco Systems IPS4510K9 manual Add an entry to the known hosts list, View the key for a specific IP address