Linux: Keeping Putty Session Alive Set to alias or copy paste to terminal to keep session alive. while true; do echo "hello" > /dev/null; sleep 25; done