trap for indexing(interrupt long find with ctrl-c), timeout for first ssh (wakesyno+inputkey)