Hmm, I was hoping to spot something there but as you say it's pretty simple. I'm afraid I can't help any further at this stage (we still manually deploy by unzipping several files including the EAR to the correct directories).
Deploying to a remote JBoss AS has always been problematic because JBoss AS provides no help in this area (though with the new admin console, Embedded Jopr, there might be a way once tools, such as cargo, catch up).
The only way to do a remote deployment is to copy the file(s) to the remote host using network file copy, or ftp, or some other similar mechanism (or writing a web app that does deployment - I've done this before but like I said Embedded Jopr can do this now).
And a hint on doing a remote deploy: copy the file(s) to a temporary location first, and after the copy is complete, move the file(s) to the deploy directory. (You want to avoid having the hot deployer attempt to deploy your app when it is only partially copied, that can sometimes give bizarre error messages.)
Personally, I don't deploy often enough to worry about automation so I do it by hand. If I were to automate it, I would do it via an Ant script that did a network copy followed by a move. But then my PC and the server are both behind the firewall and I have the luxury of connecting to the server's disk.