Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-26-2012, 10:15 PM   #1
LQ Newbie
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
OpenSSH Client Logging

I have an application (Nessus) which spawns multiple SSH sessions as it scans and detects compliance issues.

After a some patching this week I started having issues and I am fairly certain I have narrowed it down to the SSH client.

I know I can turn on debug in the config of the OpenSSH client, but it seems as if that will only drop it to the screen. A redirect won't work as the SSH sessions are generated through Nessus.

I am looking to have ALL the SSH client session logging debug level to a file, not just the ones I am initiating logging in.

Old 07-27-2012, 10:40 AM   #2
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
We log ours using syslog. First we turn on daemon logging with xinetd

xinetd -syslog daemon
Next we create entry in /etc/syslog.conf to log to a specific file by adding the following line.

daemon.*                                       /var/log/daemon
It should catch all ssh sessions. If that doesn't work look to see what level Nessus is running at or on and modify /etc/syslog.conf to reflect it.

For examplel openLDAP runs on local4 so we added -

local4.* /var/log/ldap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Chrooted OpenSSH SFTP server logging issue Sea-you Linux - Server 2 08-03-2011 09:09 PM
Logging SSH Connections with openSSH alfredofernandeza Linux - Server 4 11-15-2006 06:41 PM
OpenSSH - how to force logging of failed attempts? haertig Linux - Security 4 06-07-2006 05:49 PM
OpenSSH client to F Secure Server kmslack Linux - Security 1 03-18-2004 05:02 PM
Openssh logging in prob. neil Linux - Security 8 08-23-2001 03:19 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:26 AM.

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