1) eval `ssh-agent`2) ssh-add /export/home/sufuser/.ssh/id_rsa When asked for passphrase enter "passwordpassword1234
but whenever I run the script it stucks after "ssh-add /export/home/sufuser/.ssh/id_rsa" command and asks fro password
although I have given password in script its not taking it and asking to input [assword mannually , but if I am inputtting the password manually its not working .....
If i do thses steps manually 1 bye 1 ... everything works very fine . . .
Need your help in prepatation of such a script which will take ssh password via script
Hi fra, thanks for your prompt reply.
can you please give me exact script with following requirment
1)eval `ssh-agent`
2) ssh-add /export/home/sufuser/.ssh/id_rsa When asked for passphrase enter "passwordpassword1234"
3) dumpsubscribers user root outputDir /ISS/dump/
All above three stpes should be executed in sequence
may you please clarify what you're actually trying to do? I mean, explain the objective of the actions you'd like to perform on the remote server (i.e: first transfer of files, second execution of remote commands etc.)