Thank you for the reply.This is not what I am after. The ssh from server 0 to (1,2,3) (no password) but a remote script on server (1,2 & 4 ) which starts a service/application needs a password for it to start. I want to be able to ssh and run this automatically, so ssh would expect a password from the remote script and answer with a password.  Sal Allan32 mins agoI want to create the cron job to run every Monday morning at 5AM.Examplessh -n -o StrictHostKeyChecking=no server1 /app/pkg/solaris/start_scriptssh -n -o StrictHostKeyChecking=no server2 /app/pkg/solaris/start_scriptssh -n -o StrictHostKeyChecking=no server3 /app/pkg/solaris/start_scriptWhen I run the above script from a cron job on a remote server every Monday morning, the application/start_script will prompt for a password to start the script. This is the application password. say password is BOB.Please enter password:Is there a way to answer the password prompt (by the start_script) without any manual interaction. The password prompt is for the application and not server I am ssh to. Its all trusted domain from one admin group.
I want to create a cron job that runs a command on a remote linux box using ssh but I want ssh to answer password
bash;shell script;ssh;autocomplete