Why ssh fails from crontab but succeeds when executed from a command line?
keychain solves this in a painless way. It’s in the repos for Debian/Ubuntu: sudo apt-get install keychain and perhaps for many other distros (it looks like it originated from Gentoo). This program will start an ssh-agent if none is running, and provide shell scripts that can be sourced and connect the current shell to this … Read more