Before SSH-ing into untrusted hosts, make sure you understand what SSH agent-forwarding and X11-forwarding are.
Also, maybe don't trust the SSH config defaults on whatever host you're on at the moment. You can explicitly set defaults yourself in your `~/.ssh/config` or similar.