if [[ $- == *i* ]]; then echo ssh interactive session fi