blob: 3c7b70cb0937226a683bf2ad8df10427f717d07f [file] [log] [blame]
Yuta HIGUCHId6dadbd2018-02-13 13:05:45 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Removes known_host entries about current ONOS cell.
4# -----------------------------------------------------------------------------
5
6for host in $OCT $OCN $(env | egrep "^OC[0-9]+" | cut -d '=' -f 2); do
7 ssh-keygen -F "$host" >/dev/null && ssh-keygen -R "$host"
8 ssh-keygen -F "[$host]:8101" >/dev/null && ssh-keygen -R "[$host]:8101"
9done