Hi folks,
I wrote a shell script and put it into crontab for regulary background processing ...
So far so good.
The problem I'm facing is with the ssh call within the script. We're using a mechanism that allows us to ssh to certain system without having to provide username and password. But sometimes the host keys may change so that in these cases the ssh will prompt for a yes/no in order to add the new key. But when running the script in the background I won't notice such situations and the script will just quit without doing anything. In fact I don't even really care about being noticed about the yes/no prompt ;-) I just want the script to automatically react if such a situation occurs and to provide the required "yes" to the ssh ...
what's the best way to accomplish this ?
Regards
Thomas
I wrote a shell script and put it into crontab for regulary background processing ...
So far so good.
The problem I'm facing is with the ssh call within the script. We're using a mechanism that allows us to ssh to certain system without having to provide username and password. But sometimes the host keys may change so that in these cases the ssh will prompt for a yes/no in order to add the new key. But when running the script in the background I won't notice such situations and the script will just quit without doing anything. In fact I don't even really care about being noticed about the yes/no prompt ;-) I just want the script to automatically react if such a situation occurs and to provide the required "yes" to the ssh ...
what's the best way to accomplish this ?
Regards
Thomas