AW: Logging of interactive / batch shell inputs / outputs



Hello,

this is rather a job for the shell than for sshd.
You might use forced commands to execute a specialised logging-shell instead of standard-user shell.
You have to modify qour shell for logging.
There's a patch called bashlogger to syslog all history-commands:
http://bugs.gentoo.org/show_bug.cgi?id=91327
http://bugs.gentoo.org/attachment.cgi?id=57967&action=view

There's no ready-to-use solution for all your actions.

Greetings, Jörg

> -----Ursprüngliche Nachricht-----
> Von: Tob_Sch@xxxxxx [mailto:Tob_Sch@xxxxxx]
> Gesendet: Dienstag, 17. Januar 2006 22:56
> An: secureshell@xxxxxxxxxxxxxxxxx
> Betreff: Logging of interactive / batch shell inputs / outputs
>
>
> Hi,
>
> we are using OpenSSH 4.2p1 on different OS (AIX, SunOS, HP-UX, Linux).
> Are there any hidden or documented sshd_config-parameters to
> explicitly
> enable logging into syslog for one, some or all of following actions:
>
> 1. interactive shell command inputs made during a ssh-session
> 2. interactive shell command outputs displayed during a ssh-session
> 3. batch shell command inputs made during a ssh-session
> 4. batch shell command outputs displayed during a ssh-session
> 5. file actions during a scp-session
> 6. file actions during a sftp-session
>
> Thanks in advance.



Relevant Pages

  • Bash-4.0 available for FTP
    ... Unlike previous bash distributions, this tar file includes the formatted ... The shell has been changed to be more ... rigorous about parsing commands inside command substitutions, ... Changes have been made to the Readline library being released at ...
    (gnu.announce)
  • Why newbies dont RTFM...
    ... Even though I've used Linux before, I've never had to do any ... BASH BUILTIN COMMANDS ... last command exited within ... unless the shell is not exe‚ ...
    (comp.os.linux.misc)
  • Re: Great SWT Program
    ... None of the nasty things that you have said or implied about me are at ... treat the file as input (manually invoking the command interpreter ... script, copy the line into that within the editor, exit, and invoke ... the shell script. ...
    (comp.lang.java.programmer)
  • Re: Shell function - accessing an Access secure db (.MDW file)
    ... > Hi - Does anyone know the correct syntax for the shell function. ... You can use the Shell command. ... To execute internal DOS command (Dir, Copy, ... Private Declare Function OpenProcess _ ...
    (microsoft.public.vb.general.discussion)
  • Re: ksh silently ignores function if mistakenly not autoloaded
    ... Here's the order of execution. ... This really takes place prior to command ... Shell scripts, with all their power, have one major drawback - they ... In the Korn Shell, there are two separate syntaxes for defining ...
    (comp.unix.shell)