Linux / UNIX Tech Support Forum
This is a discussion on Log all SSH commands at ssh-client within the Getting started tutorials forums, part of the Linux Getting Started category; Hello, Is there any way to Log all SSH commands at ssh-client side. Thanks, Abhi...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
You can use script for that. Script can make typescript of terminal sessions, also persistant through establishing and working on ssh sessions. The script command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
__________________
teh.geekosphere.org |
|
|||
|
Thanks for the quick reply
on googling i can see that we can use reverse ssh tunneling for this. any lights on this idea ??? My aim is to setup a key server. i have a number of target servers. so on ssh ing to these servers, i have to log all ssh commands in my key server Thanks, Abhi Last edited by abhijith; 24-11-2007 at 02:46 AM. |
|
||||
|
I recommend running server side command monitoring.
How to keep a detailed audit trail of what’s being done on your Linux systems |
|
|||
|
Hello Thanks for the reply
Anyway Here is my requirement in short: I just want to log all ssh commands at ssh-client machine that are being executed at the SSH server In other words: I know a brief history of all executed commands on a linux machine can be retrieved from "bash history". I would like to get this info available also at the ssh-client machine (if possible, with more details like timestamp. Abhi |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| See what commands have been run on your Linux server | sweta | Getting started tutorials | 5 | 30-04-2008 03:38 AM |
| How to monitor RSH commands | mformit | Solaris/OpenSolaris | 0 | 11-04-2008 09:44 PM |
| basic commands? | seshaionline | Getting started tutorials | 7 | 24-03-2008 11:30 PM |
| Commands required to monitor a Solaris servers | ramrishie | Solaris/OpenSolaris | 2 | 22-01-2008 05:17 AM |
| using shell commands in C | steve | Coding in General | 2 | 14-10-2005 09:25 AM |