posted 11 years ago
This is actually a fairly common thing to do. I've even got a production system of my own that does this.
Basically, you can use a single "ssh" command that logs in and executes a single command within the context of the logged-in user (in other words, the script already has to be present on the target machine). Then it logs out.
I'm almost totally certain that the PuTTY toolset has a command-line ssh program that will do that for Windows users.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.