I have a remote computer which I currently cannot access with SSH. The computer responds to ping but SSH gives connection refused, so I suspect the ssh-server is not working for some reason.
What would be a reasonable alternative if something goes wrong with SSH in general?
I had a weird idea that would allow me to perform commands on the remote computer without SSH. I could have a bash script on my http-server that the remote machine would periodically download, say once a minute with cron, and always run this script. The file would be empty normally. The resulting output could be uploaded to the same server if needed.
But is there an easier way?
NOTE: I'm looking for a software solution compatible with Ubuntu 12.04.