Yuta HIGUCHI | d6dadbd | 2018-02-13 13:05:45 -0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | # ----------------------------------------------------------------------------- | ||||
3 | # Removes known_host entries about current ONOS cell. | ||||
4 | # ----------------------------------------------------------------------------- | ||||
5 | |||||
6 | for 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" | ||||
9 | done |