Since crontab runs non-interactively, it cannot prompt for a password. You must use SSH keys to authenticate.
: Ensure you can log in without a password by running sftp user@remote-host manually. Phase 2: Create the SFTP Download Script crontab sftp download
: Run ssh-keygen -t ed25519 on your local machine and leave the passphrase blank. Since crontab runs non-interactively, it cannot prompt for
Create a file named sftp_download.sh and add the following logic: Since crontab runs non-interactively