Re: Solaris 9 Secure Shell connection logging
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 12/10/03
- Previous message: Darren Tucker: "Re: About finish message of handshake protocol for TLS 1.0"
- In reply to: Helpful Observer: "Solaris 9 Secure Shell connection logging"
- Next in thread: Neil W Rickert: "Re: Solaris 9 Secure Shell connection logging"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Previous message: Darren Tucker: "Re: About finish message of handshake protocol for TLS 1.0"
- In reply to: Helpful Observer: "Solaris 9 Secure Shell connection logging"
- Next in thread: Neil W Rickert: "Re: Solaris 9 Secure Shell connection logging"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|