A shell is not useful on a touch screen device.
iOS comes with a text editor built in. Memo.
Ssh server doesn't make sense for an iPhone. How would that even work? It wouldn't be able to do anything or be a worse experience than something properly designed for the user rather than trying to force a 50 year old computing model onto a phone.