There's nothing dangerous about SSHing into an untrusted server unless you're using the same keys for everything.