According to my friend with a 3G iPhone, he got (or will get) an app that allows him to run SSH through his browser, or somesuch like that, so that the app won't terminate when switching around, or whatever. I don't know because I have an Openmoko, which comes out of the box with a terminal. :P