You could try popping this into a text file, uploading it to your root's home directory on the iPhone (since that's where you'll be upon login) and run it:
#!/bin/sh
ssh
name@ip.add.re.ss
The script should "end" once you ctrl-d or logout of the server you're on.
After popping this up to the iPhone, do a chmod 4755 on it.
That way, you open Term-vt100, type ./scriptname and you're all set.