As long as you install stuff from known "safe" sources then you should be fine, opening up SSH on your iPad introduces a new hole into the security of the device by opening a new port with a default password that everyone has. If I'm not mistaken it's "root" "alpine", which is the typically the first and second words in a password attack dictionary file.
If you are that concerned about the security of your device then you probably need to look at the payloads of the packages that you downloaded, research them and verify their integrity using
OpenSSL. (either md5, sha1, or sha256 depending on what you are verifying against). SSHing into your device opens up another port which is commonly used for attack vectors.