Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have SSH access to a CentOS box and I have a strange behavior of that box, I have never seen before.

Lets say I am editing a file with vi or displaying tail -f of a file. Every time the server has some message to show, this message appears from the top, erasing the lines I was seeing from the file I was editing or tailing.

It is like console and terminal were combined over the same window. For example: if I am editing a file with vi and I check my emails using a client, I see a dump of lines showing that I am connecting to the box and these lines cover the lines I was seeing before.

How do I stop this? thanks

share|improve this question
up vote 1 down vote accepted

The system logger, or something, is sending output to /dev/console (or the pty your ssh session is in, since I don't think /dev/console actually includes that).

Fortunately, you can refresh the display; this will replace those messages with what was supposed to be there. vi and a lot of other terminal apps will respond to ctrl-l (try it). This also works at a command prompt, but it is the equivalent of clear.

You might want to send the admin a note about this since it's really only appropriate for significant messages (eg, "The system is going down for halt now!").

share|improve this answer
that was it. I found the culprit:fail2ban. – SpaceDog Feb 15 '13 at 17:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.