Re: Solaris 9 Secure Shell connection logging

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 12/10/03

  • Next message: Neil W Rickert: "Re: Solaris 9 Secure Shell connection logging"
    Date: Wed, 10 Dec 2003 21:13:23 GMT
    
    

    In article <help-20031210150001@helpful.aq>,
    Helpful Observer <observer@helpful.aq> wrote:
    >Under Solaris 9, using the included Solaris Secure Shell,
    >I wanted to log connections, so I did this (as root):
    >
    > # cat > /etc/ssh/sshrc
    > /usr/bin/logger -p daemon.notice -t 'sshd' "$USER connected $SSH_CLIENT."
    > ^D
    > # chgrp sys /etc/ssh/sshrc
    > # chmod 755 /etc/ssh/sshrc
    >
    >In systems using the open-source OpenSSH, the corresponding file is
    >
    > /etc/sshrc

    OpenSSH already logs this kind of info to wherever you point its syslog
    to, see the SyslogFacility and LegLevel config options. Sun SSH is
    likely to have similar options.

    $ tail -1 /var/adm/authlog
    Dec 11 07:55:11 myhost sshd[9178]: Accepted publickey for dtucker from 192.168.32.1 port 47373 ssh2

    -- 
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
        Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.
    

  • Next message: Neil W Rickert: "Re: Solaris 9 Secure Shell connection logging"

    Relevant Pages

    • Re: Solaris 9 Secure Shell connection logging
      ... >Under Solaris 9, using the included Solaris Secure Shell, ... >I wanted to log connections, so I did this: ... see the SyslogFacility and LegLevel config options. ... Good judgement comes with experience. ...
      (comp.sys.sun.admin)
    • Solaris 9 Secure Shell connection logging
      ... Under Solaris 9, using the included Solaris Secure Shell, ... I wanted to log connections, so I did this (as root): ... In systems using the open-source OpenSSH, ...
      (comp.sys.sun.admin)
    • Solaris 9 Secure Shell connection logging
      ... Under Solaris 9, using the included Solaris Secure Shell, ... I wanted to log connections, so I did this (as root): ... In systems using the open-source OpenSSH, ...
      (comp.security.ssh)