You can use ssh to tunnel specific ports and have them redirected anywhere you specify on the remote side. But then you'd have to be able to tell GAIM, et al., to connect to whatever port you specify on localhost, and whether or not you can do that depends on the application.

In general, you'd want to ``ssh -L <AIM port>:<AIM server>:<AIM port> <remote Solaris machine>'' and then have GAIM connect to localhost, if possible.
_________________________
Bitt Faulk