When I try to connect using x2go client, I get the error:
My online searches return results of most people suggesting to replace the line:
mesg n
with
tty -s && mesg n
in /root/.profile
or some variation. I tried this but the problem persists.
I'm thinking this has to do with shell scripts trying to access tty in a non-interactive mode but I cannot seem to find where else this would be happening. I'm pretty new to Linux so I probably need some assistance now, thank you.
Sorry for the delayed response. I am using a Windows client. I was able to figure out the problem. in /etc/profile, there was a custom script being included that I overlooked. /etc/profile was looping through and including all the scripts it could find from within /etc/profile.d/ the culprit was called /etc/profile.d/custom.sh which was added by my web host provider. This script was not testing for shell interactivity so I added the check and that fixed it.