Re: Get rid of the message: session opened for user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
> I'm curious - why?
The reason is quite simple:
I am a kernel developer and sometimes ssh into my machine in
several ssh sessions, many times during work sessions I monitor the
kernel log by tail -f /var/log/messages, and any clutter of text
simply distracts me and is not needed as I am working in an isolated
LAN in a LAB, there is no outside access and no risk of penetration.
I am sure there is a way to avoid this messages.

Any ideas anyone?


regards,
Kevin

On Mon, Sep 1, 2014 at 8:18 PM, Pete Travis <lists@xxxxxxxxxxxxxx> wrote:
>
> -----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@xxxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxx
> -----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-----
>
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux