LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-06-2005, 12:22 AM   #1
IchBin
Member
 
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Rep: Reputation: 15
ssh log?


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.!!
 
Old 06-06-2005, 09:20 AM   #2
setenv02
Member
 
Registered: Apr 2005
Location: Chicago,IL
Distribution: redhat 9
Posts: 32

Rep: Reputation: 15
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.
 
Old 06-06-2005, 11:01 AM   #3
IchBin
Member
 
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Original Poster
Rep: Reputation: 15
I have checked both the ssh_conf and the sshd_conf and I do not find anything in the there to specify where it logs.
 
Old 06-06-2005, 12:21 PM   #4
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Run sshd thusly:

sshd -e 2>/var/log/secure

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).
 
Old 06-06-2005, 09:24 PM   #5
IchBin
Member
 
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Original Poster
Rep: Reputation: 15
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.
 
Old 07-04-2008, 06:15 AM   #6
vinod_p
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
How to disable sshd logs

Quote:
Originally Posted by IchBin View Post
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.

Thanks in Advance
Vinod Patil
vinod_p@persistent.co.in

Last edited by vinod_p; 07-04-2008 at 06:16 AM.
 
Old 07-04-2008, 07:01 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
How about loglevel = error or even loglevel = quiet?

Last edited by jschiwal; 07-05-2008 at 03:24 AM. Reason: Fixed punctuation error.
 
Old 07-06-2008, 11:14 PM   #8
vinod_p
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
SSH Logs disabling

Quote:
Originally Posted by jschiwal View Post
How about loglevel = error or even loglevel = quiet?
Yeah i tried that as well... but it doesnt work.
 
Old 07-07-2008, 05:44 PM   #9
IchBin
Member
 
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Original Poster
Rep: Reputation: 15
I wouldn't recommend that anyone turn logging off. But if you need to you can just start SSH with -q quiet option.
 
Old 08-25-2010, 03:50 AM   #10
unsigned_nerd
LQ Newbie
 
Registered: Jan 2005
Location: Bangkok
Distribution: Grml Linux
Posts: 6

Rep: Reputation: 0
I found a solution and tested it under grml linux (a fun debian based distro):

http://unsigned-nerd.blogspot.com/20...ation-log.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH password less log-in provo1234 Linux - Networking 4 12-30-2004 06:07 PM
something very crazy in my SSH Log!! dexter_modem Linux - Security 3 03-26-2004 11:39 AM
ssh cant log on!! e1000 Linux - Networking 4 02-16-2004 01:59 PM
how do you get X-windows when you log on though ssh? digital bots Slackware 11 09-16-2003 04:23 AM
SSH Log Crashed_Again Linux - Security 4 01-25-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration