Help answer threads with 0 replies.
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, 01: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 02:11 PM.
Old 09-08-2013, 07:26 AM   #2
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,568
Blog Entries: 14

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

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 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 > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02: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