My impression of the OPs request was to be able to type a command in MSN Messenger. A message in the MSN protocol would go to a program that the OP is trying to write which would then talk to his ssh server on the other side. ssh would then send something back through the program to his MSN after which the loop would start anew.
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come