sudo command remembers for a while that I entered my password, so that I don't need to re-enter it every time. I know that I can delete this "session" using
Now, if I was logged in via ssh, used sudo, and then logged out without running
sudo -k. Could someone who gained access to my account before the sudo password re-entry timeout somehow use sudo without entering a password? I know it doesn't work when you just open a new ssh session, presumably because it uses a different pseudo-terminal, but there might be a different way.
And if it is possible, what can I do against it?