If a phone is jailbreakable, it means that there remains an (difficult to locate) exploit in the version of iOS, even without the jailbreak.
You only "open" up your system by installing OpenSSH, leaving it enabled at all times, and by not changing the default password.
Just be smart as you would with anything else security wise.