Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Reinitializing SSH

Changing key sizes by reinitializing SSH  Top

Reinitializing SSH enables you to change the sizes of existing host and server keys. To reinitialize SSH, complete the following steps.

Step

Action

1

Cancel the existing host and server keys by stopping the SSH daemon with the following command:

secureadmin disable {ssh1|ssh2}

Use ssh1 to disable SSH service for SSH 1.x clients or use ssh2 to disable SSH service for SSH 2.0 clients.

2

Enter the following command:

secureadmin setup -f ssh
3

When prompted, enter a size for the host key if you are using the SSH 1.x protocol.

4

When prompted, enter a size for the server key if you are using the SSH 1.x protocol.

5

When prompted, enter a size for the host key if you are using the SSH 2.0 protocol.

6

Activate the new host and server key sizes by entering the following command:

secureadmin enable {ssh1|ssh2}

Use ssh1 to enable SSH service for SSH 1.x clients or use ssh2 to enable SSH service for SSH 2.0 clients.

Result

Clients that have a copy of the old host key give the following warning after they receive a new key from the storage system:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: HOST IDENTIFICATION HAS CHANGED!         @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle 
attack)!
It is also possible that the host key has just been changed.
Please contact your system administrator.
Add correct host key in /u/sisa/.ssh/known_hosts to get rid of this 
message.
Agent forwarding is disabled to avoid attacks by corrupted servers.
Are you sure you want to continue connecting (yes/no)? 

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments