Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-07-2013, 02:07 PM   #1
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

Using Raspberry PI and Soft-float Debian “wheezy”

Last edited by john56477; 09-07-2013 at 03:11 PM.
Old 09-08-2013, 08:26 AM   #2
Senior Member
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM 17.1
Posts: 4,993
Blog Entries: 8

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
grep -i failed /var/log/*
Old 09-09-2013, 06:00 PM   #3
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,339

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


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 05:20 AM
[SOLVED] libpam-ssh does not unlock keys on wdm/xdm logins (unstable) Tister Debian 1 01-04-2010 12:11 PM
Root & user logins : Passwords? Why not encryption keys instead? furfurdemon666 Linux - Security 4 07-02-2004 10:17 AM
Enabling arrow keys for history recall subu_s General 1 06-18-2004 08:30 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 04:31 AM

All times are GMT -5. The time now is 04:31 PM.

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