LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-03-2007, 10:50 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
SSH fatal: Read from socket failed: Connection reset by peer


I've got the following occurring in my logs:
Code:
sshd[8770]: fatal: Read from socket failed: Connection reset by peer
Is there a way that I can silence it to not log this?
 
Old 01-03-2007, 12:41 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You can set the following in /etc/ssh/sshd_config:
Code:
LogLevel QUIET
and restart sshd.

I wouldn't really recommend it, though, since that basically turns off all logging for sshd. Are you really seeing that many entries on your log file?
 
Old 01-03-2007, 02:09 PM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
well it generates a fair amount, the problem is that it logs this to auth err which I have something that generates alerts based on this so it comes into my inbox which is rubbish.

I may just have to except this one thing if I can't make it play right

I'm not going to loglevel quiet since this may blind me to login attempts on my servers
 
Old 01-03-2007, 06:41 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Why not change your log reading tool to exempt the above pattern from the alerts? If the alert is sent every time the files change at all (ignoring the specific changes) I would say that's a bad alerting mechanism...

You can make sshd log to another facility, though:
Code:
SyslogFacility DAEMON
or
Code:
SyslogFacility LOCAL0
etc... Check the man page for sshd_config for details.

If you choose one of the local facilities, make sure your syslog.conf is configured to send it somewhere.
 
  


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
XIO: fatal IO error 04 (connection reset by peer) on X server ":0.0" Kernel 2.6.5 Slackware 15 10-28-2007 11:53 PM
XIO: fatal IO error 104 (Connection reset by peer) on X Server ":0.0" pizu Linux - Newbie 10 11-30-2006 01:57 AM
fatal IO error 104 (connection reset by peer) on X Server ":0.0" Post Modern Linux - Desktop 2 09-19-2006 11:14 PM
ssh connection reset by peer Brain Drop Linux - Software 4 07-30-2004 09:18 PM
ssh connection reset by peer bubsgt95 Linux - General 6 06-27-2003 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:41 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