Hacker News new | ask | show | jobs
by jean_dupont 529 days ago
Unfortunately we have to detect nested sessions too! When doing sudo -i, the $SSH env var can't be retrieve and we have to browse through the process tree and look for sshd. And we need fancy printing with colors too!