send keys to exit ssh and shell, also term