I have a login script that runs when users logs into a Linux machine.
#!/bin/bash if [ "$SSH_TTY" ]; then
This script is interfering with a monitoring software that also connects over SSH. The script requests "press any key to continue" with a read -p -n1 -s portion. How can I omit this script only when the monitoring service is "logging in?"