Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering how I can change where ssh logs? My system currently logs to the messages file which I don't want it to do. I would like it to log to the /var/log/secure file. I've looked in the sshd.conf and the syslog.conf but I can't seem to find anything. Any help is appreciated.!!
I think you will be able to edit where you want your log in the ssh.conf file. This file is located in /etc/ssh, and will be able to be edited as long as you have permissions. My system has ssh logs logged already to the secure file so good luck with yours.
And you'll get the effect that you want. -e tells sshd to output messages to stderr instead of its default logfile, and then you can redirect stderr (2) to whatever file that you want (in this case /var/log/secure).
I found what I was looking for. In my syslog.conf file I needed to specify auth.info to the secure file. It was actually setup to port all *.info messages to the messages file. Thanks for the suggestion though rose_bud.
I found what I was looking for. In my syslog.conf file I needed to specify auth.info to the secure file. It was actually setup to port all *.info messages to the messages file. Thanks for the suggestion though rose_bud.
Hi,
Can anyone let me know to disable sshd logging? I have tried
/etc/ssh/sshd_config:LogLevel to INFO. But it doenst work.
In our application we have been logging to the other server every few seconds for various checks. So this leaves the server flooded with messages and runs the server out of disk space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.