You can set key based authentication in your server machine. For that you have to create one ssh key and copy that key in your remote system.
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
The key's randomart image is:
| . .o|
| S o + .=|
| . o o o o+|
| o . B..+=.o|
| + =+**BEo+|
| . o+==+*B+o|
$ ssh-copy-id 'remote ip'
Now, you can able to run your program without any password.