Operating System - HP-UX
1833883 Members
1736 Online
110063 Solutions
New Discussion

Unsuccessful login attempts

 
Matt Rieman
Contributor

Unsuccessful login attempts

I know that the lastb command shows unsuccessful login attempts, but is there a log or file, that shows what address the attempts were coming from?
4 REPLIES 4
Greg Vaidman
Respected Contributor

Re: Unsuccessful login attempts

for telnet and ftp, make sure you're using tcp wrappers (see the man page for tcpd).

for ssh, make sure that the LogLevel in sshd_config is set to either not present or set to anything other than quiet.

if you have this set up, you should see details on failed login attempts in syslog, along with the source of the attempt.
Greg Vaidman
Respected Contributor

Re: Unsuccessful login attempts

typed too fast. in the ssh description, i meant to say "... not set at all or set to anything other than quiet"
Joe Kanakaraj
Advisor

Re: Unsuccessful login attempts

Matt,

You can just use the lastb -R option to see the ip from which the bad login was attempted.

Syntaxlastb -R

Cheers,

Joe
Unix is simple, but it takes a genius to understand the simplicity. - quoted Dennis Ritchie
Matt Rieman
Contributor

Re: Unsuccessful login attempts

thanks