I found this on the iClarified site.
These are instructions on how to change the root SSH password on your jailbroken iPhone or iPod touch. This password is required when using SSH to connect to your device.
Step One
If you do not already have MobileTerminal installed please follow [You must be registered and logged in to see this link.] instructions to install it.
Step Two
Press to launch MobileTerminal from your iPhone Springboard.
[You must be registered and logged in to see this link.]
Step Three
Input su into the terminal window then press the return key.
[You must be registered and logged in to see this link.]
Step Four
You will be asked to input the current root user password. Input alpine then press the return key.
[You must be registered and logged in to see this link.]
Step Five
Once you have logged in as the root user input passwd into the terminal window then press the return key.
[You must be registered and logged in to see this link.]
You will be prompted for new password. Input a password of your choice then press the return key.
[You must be registered and logged in to see this link.]
You will be asked to retype the new password. Do this, then press the return key to finalize your change.
[You must be registered and logged in to see this link.]
Note: Also, it is recommended to change the mobile password as well. Do this in the same way as changing the root password but instead type mobile.
Thanks,
Admin
These are instructions on how to change the root SSH password on your jailbroken iPhone or iPod touch. This password is required when using SSH to connect to your device.
Step One
If you do not already have MobileTerminal installed please follow [You must be registered and logged in to see this link.] instructions to install it.
Step Two
Press to launch MobileTerminal from your iPhone Springboard.
[You must be registered and logged in to see this link.]
Step Three
Input su into the terminal window then press the return key.
[You must be registered and logged in to see this link.]
Step Four
You will be asked to input the current root user password. Input alpine then press the return key.
[You must be registered and logged in to see this link.]
Step Five
Once you have logged in as the root user input passwd into the terminal window then press the return key.
[You must be registered and logged in to see this link.]
You will be prompted for new password. Input a password of your choice then press the return key.
[You must be registered and logged in to see this link.]
You will be asked to retype the new password. Do this, then press the return key to finalize your change.
[You must be registered and logged in to see this link.]
Note: Also, it is recommended to change the mobile password as well. Do this in the same way as changing the root password but instead type mobile.
Thanks,
Admin