Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Auditing SSH logs |
|---|---|
| Date: | Tue, 05 Jun 2007 09:16:20 +0200 |
hi, you could be a little bit more verbose :-) or at leastr your ssh comand :-) ssh -v -v foo@bar will give you the fingerprint of the used key then a ssh-add -l will give you the fingerprint and the name of the available keys On Fri, 2007-06-01 at 14:28 -0300, Flavio Junior wrote:
Hi folks, good morning/afternoon/evening ;) I'll try explain my doubt, but sorry for my english.. Can someone tell me if has a way to do SSHD log shows me "which" key has been accepted when logged as root ? Example: "May 31 15:15:17 lazlo sshd[12583]: Accepted publickey for root from 192.168.4.192 port 1835 ssh2" But ... which key has been accepted ? how can i audit something like it, if i have more than a single key on authorized_keys for root More info about one of my boxes: lazlo:~# cat /etc/debian_version 4.0 lazlo:~# uname -a Linux lazlo 2.6.18-4-amd64 #1 SMP Mon Mar 26 11:36:53 CEST 2007 x86_64 GNU/Linux lazlo:~# dpkg -l | grep ssh ii openssh-client 4.3p2-9 Secure shell client, an rlogin/rsh/rcp repla ii openssh-server 4.3p2-9 Secure shell server, an rshd replacement lazlo:~# telnet localhost 22 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. SSH-2.0-OpenSSH_4.3p2 Debian-9 Connection closed by foreign host. lazlo:~# grep -Ev '^$|^#' /etc/ssh/sshd_config Port 22 Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key UsePrivilegeSeparation yes KeyRegenerationInterval 3600 ServerKeyBits 768 SyslogFacility AUTH LogLevel INFO LoginGraceTime 120 PermitRootLogin without-password StrictModes yes RSAAuthentication yes PubkeyAuthentication yes IgnoreRhosts yes RhostsRSAAuthentication no HostbasedAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog yes TCPKeepAlive yes AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes lazlo:~# Best regards, FlÃvio do Carmo Junior
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Privilege separation user sshd does not exist, Dallas Clement |
|---|---|
| Next by Date: | Re: Problems with cross-compiled OpenSSH, Darren Tucker |
| Previous by Thread: | Re: Auditing SSH logs, Ian Grant |
| Next by Thread: | Problems with cross-compiled OpenSSH, Dallas Clement |
| Indexes: | [Date] [Thread] [Top] [All Lists] |