The better alternative is to jailbreak your iphone and install ssh, a shell, python and many other free unix utilities you may want. I don't know why people are even voting this up.
Absolutely! For folks who are technical enough to care about ssh'ing from their iPhones, a jailbreak is such a no-brainer. There's so little cost involved in it now with QuickPwn and stuff..
1) It's my main form of communication
2) Apple killed jailbroken iPhones once, they could do it again
3) I can't afford to buy an un-subsidized 3G iPhone yet.
When any of those three changes, I'll jailbreak; 'til then, I'd rather pay a few bucks and keep warranteed reliability.
It's also my main form of communication. You're pretty safe jailbreaking, worst case scenario: you don't update the firmware until reading whats up on a couple of websites.