Battling with SSH, cron jobs, and macOS Keyring

rsync -avz -e "ssh -i ~/.ssh/my_rsa_keyfile" \
myuser@myserver:remotedir/ ~/localdir/
`read_passphrase: can't open /dev/tty: Device not configured`
Host *
ServerAliveInterval 360
AddKeysToAgent yes
[...]Host myserver
HostName 123.123.123.123
User myuser
Host myserver
HostName 123.123.123.123
Usekeychain yes
User myuser

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nicola Iarocci

Nicola Iarocci

Software Craftsman. Everything I post on Medium is a copy — the originals are on my own website, nicolaiarocci.com