LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS (*)
User Name
Password
CentOS (*) This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices



Reply
 
Search this Thread
Old 07-29-2014, 08:12 AM   #1
mathews123
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, 09:36 AM   #2
Dudydoo
Member
 
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.

Quote:
man bash
Quote:
$ history
 
Old 08-07-2014, 01:00 AM   #3
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 35

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).
 
  


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 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 06:00 PM
Need to have scripted ssh commands appended to the remote history JulianTosh Linux - Software 2 01-17-2011 04: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 08:02 PM
is there an SSH advanced Server history? linuxadickt Linux - Software 1 09-08-2005 05:27 PM


All times are GMT -5. The time now is 11:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration