LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 09-07-2013, 01:07 PM   #1
john56477
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
how to see history of SSH logins which used keys


Normal SSH login with user/password show up using linux command last
SSH login using key pairs are not shown in the printout from last

I'm not using SSH via putty, so no bash shell created.
I'm using SSH with myentunnel, for tunnel proxy purpose, to surf
the tunnel works fine, but I don't see a history of the login.

Main question
So how to see history of successful SSH logins that used key pairs and no shell created ?

Then second question,
How to see failed SSH logins that did not provide a key, or give wrong user ID and key ?
as far as I know fail2ban records failed user/password attempts

Details
Using Raspberry PI and Soft-float Debian “wheezy”

Last edited by john56477; 09-07-2013 at 02:11 PM.
 
Old 09-08-2013, 07:26 AM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,177
Blog Entries: 4

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
#2
Code:
grep -i failed /var/log/*
 
Old 09-09-2013, 05:00 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,256

Rep: Reputation: 53
#1
Code:
grep Accepted /var/log/secure
This will show all connections whether a shell was opened or not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using scponly To Allow SCP/SFTP Logins And Disable SSH Logins On Debian Squeeze LXer Syndicated Linux News 0 08-24-2011 04:20 AM
[SOLVED] libpam-ssh does not unlock keys on wdm/xdm logins (unstable) Tister Debian 1 01-04-2010 11:11 AM
Root & user logins : Passwords? Why not encryption keys instead? furfurdemon666 Linux - Security 4 07-02-2004 09:17 AM
Enabling arrow keys for history recall subu_s General 1 06-18-2004 07:30 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM


All times are GMT -5. The time now is 10:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration