LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration