1
21.1 Legacy Series / Re: Let's Encrypt: Automation: SCP fails
« on: May 06, 2021, 06:26:28 pm »
Keep in mind that when using ssh/scp for the first time you need to accept the host key. This often leads to problems with automations run with non-login users since there is no person that can accept the host key.
If this is your issue, there are several solutions, here are two:
1. Run "yes | scp ...." in the script file once, then remove "yes |".
2. Copy the entry from your user's ~/.ssh/known_hosts to the automation user's known_hosts file.
If this is your issue, there are several solutions, here are two:
1. Run "yes | scp ...." in the script file once, then remove "yes |".
2. Copy the entry from your user's ~/.ssh/known_hosts to the automation user's known_hosts file.