Start up items??? ... and saved sessions in terminal


Okay,this probably seems pretty easy to everybody else, but this is stumping me - how do u make apps open on login? I know the clock that comes with OSX (which I have seen thrown away and replaced with a convient one in the upper right hand corner of my screen) did that, but how do u specify that other apps will do that?

On other note, is there away to save shh sessions in terminal? I mean - can u create a file that will automatically ssh into such-and-such a host and then all u have to do is enter ur password?