That code goes through ssh, which should work for a majority of Linux environments, as it does come installed by default. Windows on the other hand, will be an issue. You will need to install a version of ssh for it -- of which, there are a few options.

My issue with this is that this may be a security hole. You are using ssh which can be used for anything. You will need an account and password on the target machine. And also, you will need to hard wire the password into the client application. Someone can simply uncompile your code and have access to the target machine via the ssh account -- password and all.