Logging everything send through a SSH connection

Discussion in 'ISPConfig 3 Priority Support' started by felan, Apr 2, 2020.

  1. felan

    felan Member HowtoForge Supporter

    Good morning.
    I got a curious question. Is there a way we can log every command typed in to a ssh session, server side?
    The senario is: We have a number of people with shell access to the server and sudo access. But we'd like to log whatever command is run on the system. Problem is that normal logging would just log all sudo activity as root user. So we'd like to log it to a given ssh session instead.
    Any ideas?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. felan

    felan Member HowtoForge Supporter

    Thanks. Will take a look at it :)

Share This Page