Hi say_hi_ravi,
I did some digging, and found
this post which may answer your question.
Essentially, the preferred way to do this without having to enter a password seems to be to set up public/private SSH keys on both systems. This will allow the remote system to automatically validate the connecting system, and allow you to run ssh commands without typing passwords.
ie. ssh user@remotehost 'df -h'
That one line would simply output the result of that command, as if it were run on the remote host, without requesting a password. Normally, you'd be prompted first for "user"'s password.
Have a read of the post above, and let us know if this is what you're looking for.
Thanks!