Record ssh sessions

Record ssh sessions - How to enable it on the bastion host (also called a “ jump server ” ) 

This feature lets you record ssh sessions of ssh jump servers users accessing servers or amazon instances or other cloud instances via the jump box and audit the ssh logs recorded. This is useful for meeting security compliances like pci dss, hippa, nist , nerc, ffiec etc. To enable ssh  recording.

  1. Navigate to Settings->General->Security->SSH Session Logging
    record-ssh-session-setting

There are 3 settings to record the ssh sessions

  • None - This would disable ssh session recording.
  • Input - This would record only the STDIN , which would be the keyboard inputs of the ssh jump server user. 
  • Output - This would record only the STDOUT which would be the outputs on the screen of the jump server user.
  • Both - This would record both the STDIN and STDOUT of the ssh session.

     
     The input mode would record the invisible characters typed into the STDIN, hence it would record the password changes of a user that is done using the password command. This would be in violation of security compliances like PCI DSS , HIPPA , MAS , NIST, GDPR, FFIEC, etc. We would recommend choosing output only to avoid recording the password in order to meet security compliance.


     

How to view the ssh session recorded?

  1. Navigate to users->SSH log and select the jump server user and the server  to view the recorded session for that server.
    ssh-session-recording


  2. Click on the ’Log type output’ to view the entire ssh session recorded for the user john on the server tesla.eznoc.com.  As you can see the entire ssh session is available.

    record-ssh-session

     How to view the ssh session recorded in real time or view the currently on going ssh session of jump server users live?

    Click on enable streaming and choose the interval of 1 second and you will be able to what the jump server user is doing on a server in real time. 
     
    Ensure to disable ssh log encryption under Settings->General->Security->Encrypt SSH Session logs so that the Enable streaming button is visible.

live-ssh-session-recording

 

 

How to encrypt ssh session log recorded to meet security compliances?

You can enable ’Encrypt ssh session logs’ under Settings->General->Security so that logs are not human readable. Note that the logs are only readable from the gui and the ssh logs are  stored in the /var/log/ezlogin directory.

record ssh session

 

 

How to search the ssh session log recorded for strings or keywords?

Enter the string to be searched in the field 'Log Content'.  The results show the matching logs and user,username with which the server was accessed and the login and logout times are recorded as well.

record-ssh-session

 

 

 

0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to disable web terminal appllication in Cpanel ?
    Viewed 1482 times since Fri, Jun 29, 2018
    Set SSH User Expiry
    Viewed 892 times since Thu, Sep 20, 2018
    How to enable google 2FA (Two factor Authentication) in ezeelogin ?
    Viewed 2693 times since Mon, Oct 9, 2017
    encryption used in ezeelogin use to secure information stored
    Viewed 1810 times since Thu, Jun 15, 2017
    record rdp session
    Viewed 722 times since Thu, Dec 6, 2018
    How to enforce 2 Factor Authentication on user login?
    Viewed 958 times since Wed, Sep 19, 2018
    Configure four eyes authorization
    Viewed 1652 times since Fri, Dec 1, 2017
    How to stream the ssh sessions in real time?
    Viewed 2867 times since Wed, Nov 22, 2017
    How to change the private key in use and change the default public key in use?
    Viewed 2201 times since Fri, Dec 1, 2017
    Access Keyword 2FA explained
    Viewed 327 times since Wed, Jan 30, 2019