history
Use
history
history | grep ssh
What It Does
history prints recent commands from your shell history.
Practice
Pipe it to grep or save the last lines as evidence for a quest.
Watch Out
History may include mistakes. Read it before publishing it.

Linux Foundations