LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-28-2015, 08:25 AM   #1
radarme99
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
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
 
Old 06-29-2015, 09:28 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
As what users are you trying to run the rsync script as?
 
Old 06-29-2015, 09:40 AM   #3
radarme99
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Reply

I'm using fkbin to run the task under cron. Works first couple of times then filas with permission error.
Works fine from console when I'm logged on as fkbin.
 
Old 06-29-2015, 11:39 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Start with
Code:
Warning: Identity file /home/fkbin/.ssh/lrsyncprd not accessible: No such file or directory.

Last edited by Habitual; 06-29-2015 at 11:43 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A little help to diagonse authentication failures from log plisken Linux - Security 1 05-23-2014 03:07 AM
Too Amany Authentication Failures, when I ssh into a server thllgo Linux - Security 2 03-24-2012 07:17 PM
Too many authentication failures for user - ssh problem dlugasx Linux - Server 4 08-04-2011 12:03 PM
Samba authentication failures trying to access my Windows PC from openSUSE 11.3 ozzy24 Linux - Networking 3 08-20-2010 12:25 AM
root Authentication failures baldur2630 Linux - Security 8 11-25-2008 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration