<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    -----BEGIN PGP SIGNED MESSAGE-----<br>
    Hash: SHA1<br>
    <br>
    On 09/01/2014 11:53 AM, Kevin Wilson wrote:<br>
    <span style="white-space: pre;">&gt; Hi,<br>
      &gt;&gt; I'm curious - why?<br>
      &gt; The reason is quite simple:<br>
      &gt; I am a kernel developer and sometimes ssh into my machine in<br>
      &gt; several ssh sessions, many times during work sessions I
      monitor the<br>
      &gt; kernel log by tail -f /var/log/messages, and any clutter of
      text<br>
      &gt; simply distracts me and is not needed as I am working in an
      isolated<br>
      &gt; LAN in a LAB, there is no outside access and no risk of
      penetration.<br>
      &gt; I am sure there is a way to avoid this messages.<br>
      &gt;<br>
      &gt; Any ideas anyone?<br>
      &gt;<br>
      &gt;<br>
      &gt; regards,<br>
      &gt; Kevin<br>
      &gt;</span><br>
    <br>
    Please don't top post - it is confusing to read posts and replies
    out of order.<br>
    <br>
    Instead of `tail -f /var/log/messages` use `journalctl -kf`.  "-k"
    filters to only kernel messages. If you want to see more, add more
    to the filter.<br>
    <br>
    <br>
    <span style="white-space: pre;">&gt; On Mon, Sep 1, 2014 at 8:18 PM,
      Pete Travis <a class="moz-txt-link-rfc2396E" href="mailto:lists@petetravis.com">&lt;lists@petetravis.com&gt;</a> wrote:<br>
      &gt;&gt;<br>
      &gt; On 08/30/2014 08:58 AM, Kevin Wilson wrote:<br>
      &gt; &gt;&gt;&gt; Hi,<br>
      &gt; &gt;&gt;&gt; Thanks. I checked all three options Rick
      suggested and none of them<br>
      &gt; &gt;&gt;&gt; worked.<br>
      &gt; &gt;&gt;&gt; Does anybody know about a solution which works ?<br>
      &gt; &gt;&gt;&gt;<br>
      &gt; &gt;&gt;&gt; regards,<br>
      &gt; &gt;&gt;&gt; Kevin<br>
      &gt; &gt;&gt;&gt;<br>
      &gt; &gt;&gt;&gt;<br>
      &gt; &gt;&gt;&gt; On Thu, Aug 21, 2014 at 10:57 PM, Rick Stevens
      <a class="moz-txt-link-rfc2396E" href="mailto:ricks@alldigital.com">&lt;ricks@alldigital.com&gt;</a><br>
      &gt; wrote:<br>
      &gt; &gt;&gt;&gt;&gt; On 08/21/2014 11:33 AM, Kevin Wilson issued
      this missive:<br>
      &gt; &gt;&gt;&gt;&gt;<br>
      &gt; &gt;&gt;&gt;&gt;&gt; HI,<br>
      &gt; &gt;&gt;&gt;&gt;&gt; Each time I ssh with a putty client from
      windows to Linux Fedora 20, I<br>
      &gt; &gt;&gt;&gt;&gt;&gt; get the following<br>
      &gt; &gt;&gt;&gt;&gt;&gt; messages in the /var/log/messages file:<br>
      &gt; &gt;&gt;&gt;&gt;&gt; sshd[772]: pam_unix(sshd:session):
      session opened for user xxx by<br>
      &gt; &gt;&gt;&gt;&gt;&gt; (uid=yyy)<br>
      &gt; &gt;&gt;&gt;&gt;&gt;<br>
      &gt; &gt;&gt;&gt;&gt;&gt; Is there a way to prevent this messages
      ?<br>
      &gt; &gt;&gt;&gt;&gt;<br>
      &gt; &gt;&gt;&gt;&gt;<br>
      &gt; &gt;&gt;&gt;&gt; Try editing /etc/ssh/sshd_config. set
      "LogLevel" to "QUIET", "FATAL"<br>
      &gt; &gt;&gt;&gt;&gt; or "ERROR" (default is "INFO") and restart
      sshd via "systemctl restart<br>
      &gt; &gt;&gt;&gt;&gt; sshd.service"<br>
      &gt; &gt;&gt;&gt;&gt;
      ----------------------------------------------------------------------<br>
      &gt; &gt;&gt;&gt;&gt;<br>
      &gt;<br>
      &gt; Hey Kevin,<br>
      &gt;<br>
      &gt; I'm curious - why?  I've found these messages to be very
      useful when<br>
      &gt; troubleshooting or auditing remote connection attempts.  If
      you're<br>
      &gt; looking at the logs and only want to see messages from a
      specific<br>
      &gt; service, you can simply filter based on your needs at the
      time, ie<br>
      &gt; `journalctl --since today --unit NetworkManager`.<br>
      &gt;</span><br>
    <br>
    - -- <br>
    - -- Pete<br>
    -----BEGIN PGP SIGNATURE-----<br>
    Version: GnuPG v1<br>
    <br>
    iQEcBAEBAgAGBQJUBLQ5AAoJEL1wZM0+jj2Z68AIAJ4aVWOcghUtC70mK3thfqFh<br>
    LTQ42rEd5nZsZuq2O2I7BQpbEu+tHDwsJ4RD6BLwttnqWKfOaydpv/Sghca7JsU6<br>
    z1RPeYjRsV4NF80zlH8WasvdCbuSNaQHdD4eQRiGFVzRfmtsOWb3wfGi8CtR0PEc<br>
    Q+Uk49g4GW/O3uFwWPbQlrUDhrYDDQ8TXtAZhE8sEzWW7gSLZ2l8b6kw0v01rtwB<br>
    kj90A4esJ06Kd/BDP3SseqXsoBBKMPQTQRlMqJvJ+wvVHTeuIJEP38YF2N3uGUL7<br>
    mXJqq7j5bsIwg/fMVkwb+orwpnhHjnQN0/aWqalARMNq64lBNz1qc4RbFEecFwg=<br>
    =uuF+<br>
    -----END PGP SIGNATURE-----<br>
    <br>
  </body>
</html>