NetIM 2.x : Reset SSH keys

Categories:
Solution Number:
S35912
Last Modified:
2022-04-21
Issue
The NetIM VMs communicate with each other via SSH.
When the SSH connection breaks then the nodes cannot get information from other nodes.
This can happen due to SSH keys expiring or the files being overwritten by users.
Solution
NetIM shell (netimsh) provides an option to reset the ssh keys. This should be run on all the nodes
reset ssh 
Also same as ssh reset
What this does is deletes the .ssh directory from the  /home/netimadmin location. 

The following command needs be run only on the Manager since that node logs into all other nodes like in a Hub n Spoke model.
In order to restore it you need to run ssh test
This will recreate the /home/netimadmin/.ssh directory on the other nodes and populate it with the relevant files.

The command ssh test can also be run on the nodes separately but then it will only repair the connection between the node and the Manager.
Running it on the Manager will repair it on all the nodes in the swarm. 

A good measure will be
  1. To check the timestamp on the /home/netimadmin/.ssh directory 
  2. Verify the swarm nodes IP addresses are present in the Managers /home/netimadmin/.ssh/authorized_keys file.
  3. Check the output of the show nodes command

In times when running the command from the Manager fails to repair the error, we need to run ssh test from each individual node to fix it.
Environment
SteelCentral NetIM 2.x
Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case