<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;">> Hi,<br>
>> I'm curious - why?<br>
> The reason is quite simple:<br>
> I am a kernel developer and sometimes ssh into my machine in<br>
> several ssh sessions, many times during work sessions I
monitor the<br>
> kernel log by tail -f /var/log/messages, and any clutter of
text<br>
> simply distracts me and is not needed as I am working in an
isolated<br>
> LAN in a LAB, there is no outside access and no risk of
penetration.<br>
> I am sure there is a way to avoid this messages.<br>
><br>
> Any ideas anyone?<br>
><br>
><br>
> regards,<br>
> Kevin<br>
></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;">> On Mon, Sep 1, 2014 at 8:18 PM,
Pete Travis <a class="moz-txt-link-rfc2396E" href="mailto:lists@petetravis.com"><lists@petetravis.com></a> wrote:<br>
>><br>
> On 08/30/2014 08:58 AM, Kevin Wilson wrote:<br>
> >>> Hi,<br>
> >>> Thanks. I checked all three options Rick
suggested and none of them<br>
> >>> worked.<br>
> >>> Does anybody know about a solution which works ?<br>
> >>><br>
> >>> regards,<br>
> >>> Kevin<br>
> >>><br>
> >>><br>
> >>> On Thu, Aug 21, 2014 at 10:57 PM, Rick Stevens
<a class="moz-txt-link-rfc2396E" href="mailto:ricks@alldigital.com"><ricks@alldigital.com></a><br>
> wrote:<br>
> >>>> On 08/21/2014 11:33 AM, Kevin Wilson issued
this missive:<br>
> >>>><br>
> >>>>> HI,<br>
> >>>>> Each time I ssh with a putty client from
windows to Linux Fedora 20, I<br>
> >>>>> get the following<br>
> >>>>> messages in the /var/log/messages file:<br>
> >>>>> sshd[772]: pam_unix(sshd:session):
session opened for user xxx by<br>
> >>>>> (uid=yyy)<br>
> >>>>><br>
> >>>>> Is there a way to prevent this messages
?<br>
> >>>><br>
> >>>><br>
> >>>> Try editing /etc/ssh/sshd_config. set
"LogLevel" to "QUIET", "FATAL"<br>
> >>>> or "ERROR" (default is "INFO") and restart
sshd via "systemctl restart<br>
> >>>> sshd.service"<br>
> >>>>
----------------------------------------------------------------------<br>
> >>>><br>
><br>
> Hey Kevin,<br>
><br>
> I'm curious - why? I've found these messages to be very
useful when<br>
> troubleshooting or auditing remote connection attempts. If
you're<br>
> looking at the logs and only want to see messages from a
specific<br>
> service, you can simply filter based on your needs at the
time, ie<br>
> `journalctl --since today --unit NetworkManager`.<br>
></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>