AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  How to enable ssh logging on AIX 6.1

    Posted Sun May 18, 2014 01:07 AM

    Originally posted by: DhirajHaritwal


    Hi,

    i am trying to install SCOM 2012 agent on AIX 6.1 through SSH discovery but it's getitng failed with below error. so i would like to enable ssh logging (incase by default not enabled) to check if the request is coming or not. infact from this SCOM server, i am abel to login to this AIX Host through putty on ssh.

    Kindly let me know how to enable ssh logging & where to check those logs.

     

    Dhiraj



  • 2.  Re: How to enable ssh logging on AIX 6.1

    Posted Sun May 18, 2014 10:03 AM

    Originally posted by: Wouter Liefting


    Haven't checked but most likely it's a two-step process.

    First, you need to enable SSHD logging in /etc/ssh/sshd_config to whatever level you want.

    Then, most likely, you'll find SSHD logs to syslogd. Which is, on AIX, not configured by default. So you may need to put something like this in /etc/syslog.conf:

    *.debug /var/log/messages



  • 3.  Re: How to enable ssh logging on AIX 6.1

    Posted Mon May 19, 2014 12:59 AM

    Originally posted by: DhirajHaritwal


    Hi,

    Thanks for your reply. below are the contents i have in syslog.conf & sshd_config. i have restarted both sshd & syslogd but still unable to see messages file in /var/log.

    /etc/syslog.conf

    # example:
    # "mail messages, at debug or higher, go to Log file. File must exist."
    # "all facilities, at debug and higher, go to console"
    # "all facilities, at crit or higher, go to all users"
    #  mail.debug           /usr/spool/mqueue/syslog
    #  *.debug              /dev/console
    #  *.crit                       *
    #  *.debug              /var/log/syslog.debug100k.out  rotate size 100k files 4
    #  *.crit               /var/log/syslog.dailycrit.out  rotate time 1d
    # ASO log configuration
    aso.notice /var/log/aso/aso.log rotate size 128k time 7d
    aso.info /var/log/aso/aso_process.log rotate size 1024k
    aso.debug /var/log/aso/aso_debug.log rotate size 8m coMpress
    Auth.info /var/security/sshd.log rotate files 7 time 1d
    *.debug /var/log/messages

    /etc/ssh/sshd_config

    # Logging
    # obsoletes QuietMode and FascistLogging
    SyslogFacility AUTH
    LogLevel DEBUG
    #LogLevel INFO

    Regards,

    Dhiraj



  • 4.  Re: How to enable ssh logging on AIX 6.1

    Posted Thu May 22, 2014 10:59 AM

    Originally posted by: VinceJohnson


    does the file /var/log/messages exist on your server?   If not, touch the file to create it and recycle both daemons. 

     

     



  • 5.  Re: How to enable ssh logging on AIX 6.1

    Posted Mon May 26, 2014 03:41 AM

    Originally posted by: DhirajHaritwal


    Hi VinceJohnson,

    Thanks now started getting SSH logs. i have manually created messages file under /var/log & restarted both SSHD & syslogd.

    Dhiraj