Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to see the attempts connections from ssh 2

Status
Not open for further replies.

yoda37

Technical User
Oct 30, 2006
15
FR
Hi

How to see the attempts connections from ssh ?

Regards
Den
 
To check that for your existing users:

cat /etc/security/lastlog


look at lines:

- tty_last_unsuccessful_login = ssh
- host_last_unsuccessful_login = XXX.XXX.XXX.XXX
 
You can see ssh attempts by logging auth.info messages with syslogd.

Code:
# example entry in /etc/syslogd.conf

auth.info /var/log/auth.log

Then, at the shell prompt as root:
Code:
touch /var/log/auth.log
refresh -s syslogd

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top