ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Linux  >>  Linux Commands
 
 


 

 
 Linux Commands interview questions  Linux Commands Interview Questions
 Linux Threads interview questions  Linux Threads Interview Questions
 Linux IPC interview questions  Linux IPC Interview Questions
 Linux Socket Programming interview questions  Linux Socket Programming Interview Questions
 Linux System Calls interview questions  Linux System Calls Interview Questions
 Linux AllOther interview questions  Linux AllOther Interview Questions
Question
how do find all failed login attempts via ssh?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how do find all failed login attempts via ssh?
Answer
# 1
check network connectivity 
check correct ipaddress
ping ipaddress
 
Is This Answer Correct ?    0 Yes 5 No
Gowriramsankar
 
  Re: how do find all failed login attempts via ssh?
Answer
# 2
'who' or 'w'  is the command used to find the users who 
logged in the system and their attempts, with the help of 
some options
 
Is This Answer Correct ?    0 Yes 3 No
Raj
 
 
 
  Re: how do find all failed login attempts via ssh?
Answer
# 3
Failed ssh logs are either written in /var/log/messages, or
/var/log/secure (configurable in /etc/syslog.conf). I am
assuming that the failed login attempts are recorded in
/var/log/secure:

 grep ' authentication failure' /var/log/secure | sed -e
's/^\(.*\)\(rhost.*\)$/\2/p' | tr -s " " | cut -f2 -d"=" |
cut -f1 -d" " | sort -n | uniq -c

Will show you the count, and the IP/hostname of machines
that tried to access the system via ssh
 
Is This Answer Correct ?    2 Yes 1 No
Vimal Kumar K, Technomenace.co
 
  Re: how do find all failed login attempts via ssh?
Answer
# 4
The command is ,

cat /var/log/messages | grep "Failed password"

it will show all the user which is not able to login.
 
Is This Answer Correct ?    1 Yes 0 No
Anoop
 

 
 
 
Other Linux Commands Interview Questions
 
  Question Asked @ Answers
 
what is the standard output in a file as well as disply it on the terminal options like A)pr B) tail C) tee D)nl Google2
How will retrieves incoming mails from different web sites HP2
how do you port scaning with netcat command? Wipro1
How can you find configuration on linux?  2
what is jumbi process? Oracle6
some one is asking my machine is slow what is your steps? Oracle3
when zombie process fully cleared? HP2
What is the most graceful way to get to run level single user mode? Cisco2
what is Bourne shell. Google1
what is soft mount and hard mount? i have to make permanent nfs mount permanent what shall i do? IBM2
How do find hard disk revolutions speed? HP1
how do you configure linux system as a router? HP2
how many limitations of under directories in ext2/3 linux file system? Logica-CMG1
how do u extract files from iso cd images in linux? Wipro3
What is trusted/untrusted operating system?  6
How you will uncompress the file? Linux3
Did you work with linux? What flavors and versions? HP1
Hi guys, I am working in MNC from 1 and half year as Software Engg but not in programming, its in Information Security. Now I am doing RHEL 5(Red Hat certification) to move into Linux Admin. Can anyone please give me the future scope of this field and please send me the interview questions or links to get the idea. Thanks, Sushant.  1
in unix how to change old name to new name Google6
List all the files beginning with A  5
 
For more Linux Commands Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com