While using Toobelt-Command History, how to log the history commands in ssh? I can only see local history commands.
You need to install the shell integration on the the machine you are sshing into. You then will have command history for that machine.
curl -L https://iterm2.com/misc/install_shell_integration.sh | bash