Rsync too many authentication failures
I'm running an rsync command from cron every 15 minutes that gets a permission error after some time.
I can see from my ssh config file that I'm set for 6 tries which is why the script is failing. How to get around this issue? Have to run the script from the command line to get the script to 'work' again.
Been recommended not to change the retires variable.
See the error below. I will need special permission to edit the ssh config file if that is the suggestion. I tried adding this to my command but didn't resolve the issue - -o 'IdentitiesOnly yes'
/usr/bin/rsync -avz --stats --progress -e "/usr/bin/ssh -p 2022 -i /home/fkbin/.ssh/lrsyncprd -o 'IdentitiesOnly yes' " --delete --out-format="%f %t" /app/interface/unit1/ fkbin@lctcvd0266:/app/interface/unit1/ 1>> /app/logs/unit1.log 2>&1
Warning: Identity file /home/fkbin/.ssh/lrsyncprd not accessible: No such file or directory.
Permission denied, please try again.
Permission denied, please try again.
Received disconnect from 54.56.11.300: 2: Too many authentication failures for fkbin
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
From my ssh config file:
------------------------
Port 2022
PermitRootLogin without-password
Protocol 2
SyslogFacility AUTH
LogLevel VERBOSE
Banner /etc/issue.net
ChallengeResponseAuthentication yes
X11Forwarding yes
Subsystem sftp /usr/libexec/openssh/sftp-server
KerberosAuthentication no
PasswordAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
MaxAuthTries 6 # 6 is the openssh default
DenyUsers troot
PermitUserEnvironment yes
|