Trying to setup ssh keys so I can run rsync without password to do nightly backups from desktop.
Problem is that server fails to accept key recognition after a brief period of time.
I generated keys, setup on client and server and changed permissions as:
Code: Select all
chmod 0744 ~/
chmod 0700 ~/.ssh
chmod 0644 ~/.ssh/authorized_keys
If I immediately return to client, I can ssh to server and/or run scripts to rsync via ssh w/o password but after a few minutes, additional attempts to ssh to server result in request for password.
I can ssh to server with pw, run chmod commands again and will again have access for a few minutes w/o pw request.
Then server refuses to accept keys and cycle starts all over.
/var/log/secure shows this message:
"Authentication refused: bad ownership or modes for directory /home/..."
I have googled and found lots of issues with setting up keys but not this particular one.
Also find several different stated requirements for file permissions but those shown above seem to be most common.
Any help are references to a resolution will be appreciated.