Get rid of the message: session opened for user

Pete Travis lists at petetravis.com
Mon Sep 1 17:18:45 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/30/2014 08:58 AM, Kevin Wilson wrote:
> Hi,
> Thanks. I checked all three options Rick suggested and none of them
> worked.
> Does anybody know about a solution which works ?
>
> regards,
> Kevin
>
>
> On Thu, Aug 21, 2014 at 10:57 PM, Rick Stevens <ricks at alldigital.com>
wrote:
>> On 08/21/2014 11:33 AM, Kevin Wilson issued this missive:
>>
>>> HI,
>>> Each time I ssh with a putty client from windows to Linux Fedora 20, I
>>> get the following
>>> messages in the /var/log/messages file:
>>> sshd[772]: pam_unix(sshd:session): session opened for user xxx by
>>> (uid=yyy)
>>>
>>> Is there a way to prevent this messages ?
>>
>>
>> Try editing /etc/ssh/sshd_config. set "LogLevel" to "QUIET", "FATAL"
>> or "ERROR" (default is "INFO") and restart sshd via "systemctl restart
>> sshd.service"
>> ----------------------------------------------------------------------
>>

Hey Kevin,

I'm curious - why?  I've found these messages to be very useful when
troubleshooting or auditing remote connection attempts.  If you're
looking at the logs and only want to see messages from a specific
service, you can simply filter based on your needs at the time, ie
`journalctl --since today --unit NetworkManager`.

- -- 
- -- Pete Travis
 - Fedora Docs Project Leader
 - 'randomuser' on freenode
 - immanetize at fedoraproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUBKp1AAoJEL1wZM0+jj2ZPMsIAKLLTolhUXvns+X7SdpGEvvU
wVRcPEKaxIP2ePk5MGmoiXKm42zNWAXtTkZsdovOnAm3iPf1APQAI3r1PEpR38pn
Tih67ixYiFHtYOBGHndTUvGAoz3+27a/nEbf1XhOWYCB6H/Cpi8myiYbKdogG9Rq
dxy6EGBwKQ573e4rdoOUZau/M1bab823NS9IS16QQqfdL5GPqCu9Y4Zvt+M1Rtj1
DBnF0859C+POPr1JXF5BWngsBM64C9qSvk9V90mKCoP4IDqCtwF0DcD+nR+yoCIG
JPDbdthCMJbIvH7ajpbKlJ0w1sp9VdkijbJ/hLvEAnjm6elUK4sUksuKMN+03NE=
=v52O
-----END PGP SIGNATURE-----



More information about the users mailing list