Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.


  Search this Thread
Old 07-29-2014, 07:12 AM   #1
LQ Newbie
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
how to get ssh client history

i entered into a server system through ssh and do some commands .how the system administrator can get the history of the commands done by all the ssh clients.
Old 07-29-2014, 08:36 AM   #2
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Commands typed are recorded by the shell (usually Bash), unless the user clears it before logging out.

man bash
$ history
Old 08-07-2014, 12:00 AM   #3
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Rep: Reputation: 0
Some users are little smart and removes history file (such as ~/.bash_history) but you can still monitor all user executed commands by using the psacct(Process account)package. It allows you to view every command executed by a user including CPU and memory time.For install "yum install psacct" and then "/etc/init.d/acct start" and "chkconfig acct on". It has 3 command line tool (ac,sa,lastcomm).


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to see history of SSH logins which used keys john56477 Linux - Security 2 09-09-2013 05:00 PM
Need to have scripted ssh commands appended to the remote history JulianTosh Linux - Software 2 01-17-2011 03:53 PM
how to setup thin client just for telnet or ssh client use using boot diskless PXE. hocheetiong Linux - Newbie 3 05-21-2008 07:02 PM
is there an SSH advanced Server history? linuxadickt Linux - Software 1 09-08-2005 04:27 PM > Forums > Linux Forums > Linux - Distributions > CentOS

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