Unfortunately, my web hosting plan does not allow public key authentication. Apparently, this method is available to VPS and dedicated server customers only.
I've backed up my Ubuntu 11.10 machine using Deja-Dup and I'm sending the backed up files to my web host using rsync.
I would like to automate this process using a script, but as I am not able to use public key authentication, I am forced to manually copy and paste my (strong) SSH password each time to start the process.
Is there a way round this? If so, how?
$ mkdir ~/.ssh/authorized_keysand transferred my public key into this directory using scp. I closed SSH session and logged back in, but I was still prompted for my SSH password. – unpossible Oct 29 '11 at 12:34~/.ssh/authorized_keysshould be a file containing the public keys, not a directory. The recommended method to populate this file isssh-copy-id, see the link in my answer (or thessh-copy-idman page). – Gilles 'SO- stop being evil' Oct 29 '11 at 12:45