Hi@akhtar,
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.
$ ssh-keygen
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:
SHA256:uvGnlxsbPHSD99b2qQ/Oe0fNcYVtSf+q5WitlkpyXj8 root@master
The key's randomart image is:
+---[RSA 2048]----+
| .+.|
| ..=|
| .o|
| . .o|
| S o + .=|
| . o o o o+|
| o . B..+=.o|
| + =+**BEo+|
| . o+==+*B+o|
+----[SHA256]-----+
$ ssh-copy-id 'remote ip'
Now, you can able to run your program without any password.
Thank You