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...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| 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; 11-24-2007 at 03: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 |
![]() |
| Bookmarks |
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 | 04-30-2008 04:38 AM |
| How to monitor RSH commands | mformit | Solaris/OpenSolaris | 0 | 04-11-2008 10:44 PM |
| basic commands? | seshaionline | Getting started tutorials | 7 | 03-25-2008 12:30 AM |
| Commands required to monitor a Solaris servers | ramrishie | Solaris/OpenSolaris | 2 | 01-22-2008 06:17 AM |
| using shell commands in C | steve | Coding in General | 2 | 10-14-2005 10:25 AM |