{"id":42380,"date":"2024-05-21T00:29:17","date_gmt":"2024-05-21T07:29:17","guid":{"rendered":"https:\/\/www.syteca.com\/?p=42380"},"modified":"2026-06-17T02:59:41","modified_gmt":"2026-06-17T09:59:41","slug":"linux-session-monitoring","status":"publish","type":"post","link":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring","title":{"rendered":"How to Record SSH Sessions and Monitor User Activity in Linux with Syteca [Hands-on Guide]"},"content":{"rendered":"\n<p>Monitoring user activity on your critical endpoints is a vital part of an effective cybersecurity strategy. Monitoring both remote and local user sessions helps you ensure user accountability, manage cybersecurity risks, enable prompt incident response, and comply with relevant cybersecurity laws and regulations.<\/p>\n\n\n\n<p>This is a step-by-step guide on how to record SSH sessions in Linux and monitor user activity of local and <a href=\"\/en\/blog\/remote-employee-monitoring\" target=\"_blank\" rel=\"noreferrer noopener\">remote users<\/a> on any endpoint with the <a href=\"\/en\" target=\"_blank\" rel=\"noreferrer noopener\">Syteca<\/a> software agent installed. This article is also useful for organizations that want to explore Syteca&#8217;s capabilities. Learn how to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"mb-1\">Monitor, block, and record SSH sessions in Linux, including full SSH session recording with indexed metadata<\/li>\n\n\n\n<li class=\"mb-1\">Receive alerts about suspicious user activity on Linux endpoints<\/li>\n\n\n\n<li class=\"mb-1\">Export recorded Linux sessions for investigation purposes<\/li>\n\n\n\n<li>Generate reports on remote SSH connections to your endpoints<\/li>\n<\/ul>\n\n\n\n<h2  class=\"wp-block-heading\">Why monitor SSH sessions?<\/h2>\n\n\n\n<p>SSH is a secure way to remotely access critical endpoints and servers. However, unauthorized users can still gain access through vulnerabilities or stolen credentials. By monitoring SSH sessions, you can detect suspicious user activity, such as attempts to access unauthorized files or run malicious commands.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enhance visibility<\/h3>\n\n\n\n<p>By monitoring SSH sessions, you can gain a clear view of remote users\u2019 activity. User activity monitoring software for Linux lets you see who accesses critical systems and what they do, enabling you to detect anomalies and suspicious user behavior in real time. <a href=\"\/en\/product\/session-recording\" target=\"_blank\" rel=\"noreferrer noopener\">User session recordings<\/a> also provide you with compelling evidence for <a href=\"\/en\/solutions\/investigate-security-incidents\" target=\"_blank\" rel=\"noreferrer noopener\">incident investigation<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Manage cybersecurity risks<\/h3>\n\n\n\n<p>Better visibility can help you detect malicious user activity, such as unauthorized access attempts, data exfiltration, and system sabotage. Software for monitoring Linux SSH sessions allows you to detect cybersecurity threats and take measures to block them before they cause damage.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Meet IT compliance requirements<\/h3>\n\n\n\n<p>Many cybersecurity <a href=\"\/en\/solutions\/meeting-compliance-requirements\" target=\"_blank\" rel=\"noreferrer noopener\">standards, laws, and regulations<\/a>&nbsp;require organizations to audit access to sensitive systems. Recording SSH sessions and monitoring user activity in Linux provides an audit trail that can show when a critical workstation was accessed, who accessed it, and what activities they performed. When you audit SSH sessions on Linux endpoints, the detailed audit logs can help you prove your organization&#8217;s compliance with industry regulations and internal security policies.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Promptly respond to insider threats<\/h3>\n\n\n\n<p>By monitoring user activity, your security team can quickly investigate incidents by analyzing logs. This gives them a better understanding of the scope and root cause of a breach, enabling targeted decisions and rapid response. Additionally, certain Linux user activity tracking software solutions can automatically detect and <a href=\"\/en\/product\/alerts-and-notifications\" target=\"_blank\" rel=\"noreferrer noopener\">respond to threats<\/a> before they become a problem.<\/p>\n\n\n\n<p>For a detailed explanation of risks posed by remote users, refer to our articles on <a href=\"\/en\/blog\/how-to-reduce-insider-threat-risks-in-a-hybrid-office\/\" target=\"_blank\" rel=\"noreferrer noopener\">managing insider risks in hybrid<\/a> and <a href=\"\/en\/blog\/managing-insider-risks\/\" target=\"_blank\" rel=\"noreferrer noopener\">remote work<\/a> environments.<\/p>\n\n\n\n\t\t<div style=\"border-radius:16px;background:linear-gradient(90deg, #0C1B33 0%, #0D2285 100%)\"  class=\"block-74abd6a2-d960-419d-9a60-d6019ce304da areoi-element container syteca-pattern-cta-2 overflow-hidden\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-d4b35113-344d-4bd5-82b2-a69ec85a80f3 row areoi-element align-items-center pb-4 py-md-2 py-xl-0\">\n\t\t\t\n\n\t\t\t\n\n\t\t<div  class=\"block-9e962fe6-f77f-40f9-898c-abaef3f48ccb col areoi-element d-flex flex-wrap flex-column align-items-center align-items-md-start ps-md-4 pe-xl-5 pb-md-4 col-12 col-md-7 col-xl-6\">\n\t\t\t\n\t\t\t\n\n<p class=\"has-text-align-left text-center text-md-start p-poppins mb-0 has-text-color has-link-color wp-elements-74491269778564cd16f86aa73c2d7fc8\" style=\"color:#ffffff;font-style:normal;font-weight:600\">Get a Syteca online demo!&nbsp;<\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-1a9295ac6c26e56699434ccde4dfc876\" style=\"color:#ffffff;font-style:normal;font-weight:600\">See how Syteca helps you manage remote access security risks.<\/p>\n\n\n\n\t\t<div  class=\"block-25cb6341-1ace-44b8-adda-9b584c345622 areoi-element cta-buttons-block d-flex flex-column flex-md-row align-items-center justify-content-center mt-3 pt-3\">\n\t\t\t\n\t\t\t\n\n\t\t\t\t\n\t\t<a data-bs-target=\"#hsModal-demo\" data-bs-toggle=\"modal\" \n\t\t\t\n\t\t\tclass=\"block-9638877e-7b1c-4cf8-87ce-47566a9fd958 btn areoi-has-url position-relative me-md-4 mb-3 hsBtn-demo btn-primary\"\n\t >\n\t\t\t\t\t\n\t\t\t\t\tAccess the Demo Portal \n\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t<\/a>\n\t\t\t\n\n\t\t\t \n\t\t<\/div>\n\t\n \n\t\t\t\n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-f840f051-f300-4ade-9e70-68d6c65e619d col areoi-element col-md-5 col-xl-6 d-none d-sm-none d-md-block\">\n\t\t\t\n\t\t\t\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2025\/07\/28215652\/cta-2-1.png\" alt=\"\"\/><\/figure>\n\n \n\t\t\t\n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n\n\n<h2  class=\"wp-block-heading\">Using Syteca to monitor remote SSH sessions and local Linux sessions<\/h2>\n\n\n\n<p><a href=\"\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">Syteca<\/a> is a modern <a href=\"\/en\/product\/privileged-access-management\" target=\"_blank\" rel=\"noreferrer noopener\">privileged access management<\/a> (PAM) platform with built-in <a href=\"\/en\/product\/identity-threat-detection-and-response\" target=\"_blank\" rel=\"noreferrer noopener\">identity threat detection and response<\/a> (ITDR) capabilities that can help you protect access and then provide visibility into how it is used. Syteca brings privileged access management to Linux environments alongside Windows, macOS, and UNIX.<\/p>\n\n\n\n<p class=\"mb-0\">Syteca enables you to monitor and record remote SSH sessions and user activity on local Linux endpoints, providing you with indexed recordings and the following searchable metadata:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Session details, such as hostname, user name, IP address, and session duration<\/li>\n\n\n\n<li>User actions, such as keystroke input, including parameters specified and commands executed<\/li>\n\n\n\n<li>Commands carried out in executed scripts<\/li>\n\n\n\n<li>System function calls<\/li>\n\n\n\n<li>System responses from the terminal, such as command outputs<\/li>\n<\/ul>\n\n\n\n<p class=\"mb-0\">In addition to <a href=\"\/en\/product\/user-activity-monitoring\" target=\"_blank\" rel=\"noreferrer noopener\">user activity tracking<\/a>, Syteca provides the following capabilities to ensure a holistic approach to managing cybersecurity risks:<\/p>\n\n\n\n\t\t<div  class=\"block-c584c234-9188-4c00-b6e4-7e4156454a44 areoi-element container template-14 px-0\">\n\t\t\t\n\t\t\t\n\n<p class=\"has-text-align-center text-26-22 p-poppins\" style=\"font-style:normal;font-weight:600\">Syteca&#8217;s key capabilities<\/p>\n\n\n\n\t\t<div  class=\"block-db32cbb9-a296-48b0-a8b6-f93ce791bce6 row areoi-element row-cols-1 row-cols-xl-2\">\n\t\t\t\n\n\t\t\t\n\n\t\t<div  class=\"block-50fe63ce-cfa8-4c12-93f6-0a657dfd572c col areoi-element\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-01a180d5-23cf-4316-8ca3-80c2e3adaaf0 areoi-element p-3 table-head\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(26, 59, 78,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"has-text-align-center p-poppins mb-0 has-text-color\" style=\"color:#ffffff;font-size:1.25rem;font-style:normal;font-weight:600\">Privileged access management (PAM)<\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-312db585-27ea-4ca9-97cf-897bbd6bdf17 areoi-element cell-content\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(242, 246, 248,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<ul class=\"wp-block-list list-marker-color-dark-blue\">\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/product\/privileged-account-discovery\" target=\"_blank\" rel=\"noreferrer noopener\">Discover unmanaged privileged user and service accounts<\/a><\/li>\n\n\n\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/product\/privileged-access-management\" target=\"_blank\" rel=\"noreferrer noopener\">Provide just-in-time access to endpoints<\/a><\/li>\n\n\n\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/product\/workforce-password-management\" target=\"_blank\" rel=\"noreferrer noopener\">Manage workforce passwords<\/a><\/li>\n\n\n\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/blog\/multi-factor-authentication\" target=\"_blank\" rel=\"noreferrer noopener\">Verify user identities with 2FA<\/a><\/li>\n<\/ul>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n \n\t\t\t\n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-67bdd16a-074e-44f6-abe2-8363cc1a22f3 col areoi-element\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-fe69c249-45c9-41d3-818c-8d49c52c8020 areoi-element p-3 table-head\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(26, 59, 78,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"has-text-align-center p-poppins mb-0 has-text-color\" style=\"color:#ffffff;font-size:1.25rem;font-style:normal;font-weight:600\">Identity threat detection and response (ITDR)<\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-49555502-92b5-473b-93a0-1c33a0b24557 areoi-element cell-content\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(242, 246, 248,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<ul class=\"wp-block-list list-marker-color-dark-blue\">\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/product\/user-activity-monitoring\" target=\"_blank\" rel=\"noreferrer noopener\">Monitor user activity as it happens in real time<\/a><\/li>\n\n\n\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/product\/session-recording\" target=\"_blank\" rel=\"noreferrer noopener\">Record sensitive sessions<\/a><\/li>\n\n\n\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/product\/alerts-and-notifications\" target=\"_blank\" rel=\"noreferrer noopener\">Receive alerts on suspicious actions<\/a><\/li>\n\n\n\n<li class=\"p-poppins ms-4 py-4\" style=\"font-size:1.25rem;font-style:normal;font-weight:500\"><a href=\"\/en\/product\/alerts-and-notifications\" target=\"_blank\" rel=\"noreferrer noopener\">Automate threat response<\/a><\/li>\n<\/ul>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n \n\t\t\t\n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n<p>Syteca is flexible, providing a variety of <a href=\"\/en\/product\/program-structure\" target=\"_blank\" rel=\"noreferrer noopener\">deployment options<\/a> and supporting the following platforms:<\/p>\n\n\n\n\t\t<div  class=\"block-f402d41b-42d5-47cf-98a0-085131901ed0 areoi-element container template-4 px-0\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-c4c93109-6f7e-4585-85df-5f8a727b7904 areoi-element p-3 table-head\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(26, 59, 78,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"has-text-align-center p-poppins mb-0 has-text-color\" style=\"color:#ffffff;font-size:1.25rem;font-style:normal;font-weight:600\">Platforms supported by Syteca<\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-6e4c8967-278c-4c05-824f-6743feb382fd areoi-element container\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-28b3d633-1691-4973-8d7b-d2c1838773fc row areoi-element row-cols-1 row-cols-md-3\">\n\t\t\t\n\n\t\t\t\n\n\t\t<div  class=\"block-1765243f-d41b-4e37-8d4d-7c7bde2c1da0 col areoi-element px-0\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-1e8a9f72-6e48-4e74-8935-f42123d57b46 areoi-element sub-header\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(214, 222, 226,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"has-text-align-center mb-0 p-3\" style=\"font-size:1.19rem;font-style:normal;font-weight:600\">Desktops and servers<\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-5ddb4ab0-cc83-40b6-863f-a9857000a57d row areoi-element mx-0 row-cols-1\">\n\t\t\t\n\n\t\t\t\n\n\t\t<div  class=\"block-827b4d90-706b-4090-a343-7ed959e9ddbf col areoi-element p-3\">\n\t\t\t\n\t\t\t\n\n<ul class=\"wp-block-list\">\n<li>Infrastructure servers<\/li>\n\n\n\n<li>Terminal servers<\/li>\n\n\n\n<li>Jump servers<\/li>\n\n\n\n<li>Physical and virtual desktops<\/li>\n<\/ul>\n\n \n\t\t\t\n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n \n\t\t\t\n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-559b2b87-1152-49d9-8863-c8a2dff46657 col areoi-element px-0\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-9cab978a-ad7c-4526-b607-49bd2557c5e3 areoi-element sub-header\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(214, 222, 226,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"has-text-align-center mb-0 p-3\" style=\"font-size:1.19rem;font-style:normal;font-weight:600\">Operating systems<\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-d2c36afe-d5c2-43d8-83c2-77d70f3e8632 row areoi-element mx-0 row-cols-1\">\n\t\t\t\n\n\t\t\t\n\n\t\t<div  class=\"block-827b4d90-706b-4090-a343-7ed959e9ddbf col areoi-element p-3\">\n\t\t\t\n\t\t\t\n\n<ul class=\"wp-block-list\">\n<li>Windows<\/li>\n\n\n\n<li>Linux<\/li>\n\n\n\n<li>macOS<\/li>\n\n\n\n<li>UNIX<\/li>\n\n\n\n<li>X Window System<\/li>\n\n\n\n<li>Citrix<\/li>\n\n\n\n<li>Wayland (Syteca exclusive)<\/li>\n\n\n\n<li>X11<\/li>\n<\/ul>\n\n \n\t\t\t\n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n \n\t\t\t\n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-1765243f-d41b-4e37-8d4d-7c7bde2c1da0 col areoi-element px-0\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-1e8a9f72-6e48-4e74-8935-f42123d57b46 areoi-element sub-header\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(214, 222, 226,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"has-text-align-center mb-0 p-3\" style=\"font-size:1.19rem;font-style:normal;font-weight:600\">Virtual environments<\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-5ddb4ab0-cc83-40b6-863f-a9857000a57d row areoi-element mx-0 row-cols-1\">\n\t\t\t\n\n\t\t\t\n\n\t\t<div  class=\"block-827b4d90-706b-4090-a343-7ed959e9ddbf col areoi-element p-3\">\n\t\t\t\n\t\t\t\n\n<ul class=\"wp-block-list\">\n<li>VMware Horizon<\/li>\n\n\n\n<li>Microsoft Hyper-V<\/li>\n\n\n\n<li>Citrix<\/li>\n\n\n\n<li>Amazon WorkSpaces<\/li>\n\n\n\n<li>AWS (Amazon Web Services)<\/li>\n\n\n\n<li>Windows Virtual Desktops<\/li>\n<\/ul>\n\n \n\t\t\t\n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n \n\t\t\t\n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n<p>Let\u2019s see how to record local Linux sessions and monitor remote SSH sessions with Syteca. <\/p>\n\n\n\n<p class=\"mb-5\"><em>Note: Further instructions will only work for IT environments that have deployed Syteca.<\/em><\/p>\n\n\n\n\t\t<div  class=\"block-4b33c6b1-f455-4813-a18e-8b78baa0685b areoi-element pattern-read-also rounded-bg-13px\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(16, 206, 158,0.1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"p-poppins opacity-50 has-text-color\" style=\"color:#1a3b4e;font-style:normal;font-weight:500\">Learn more about<\/p>\n\n\n\n<p class=\"p-poppins\" style=\"font-size:1.38rem;font-style:normal;font-weight:600\"><a href=\"\/en\/product\/identity-threat-detection-and-response\" target=\"_blank\" rel=\"noreferrer noopener\">Syteca\u2019s Identity Threat Detection and Response Capabilities<\/a><\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n<h2  class=\"wp-block-heading\">Monitoring, viewing, and blocking SSH sessions<\/h2>\n\n\n\n<p>By default, Syteca monitors user activity on all endpoints that have had the Syteca software agent installed. Whether a user initiates a Linux session remotely via SSH\/telnet or logs in locally, Syteca records all user actions performed on the monitored workstation. This makes it straightforward to record SSH sessions on Linux endpoints without native Linux tools or complex configuration.<\/p>\n\n\n\n<p>All sessions in Syteca are displayed on the <strong>Activity Monitoring<\/strong> page, in the <strong>Endpoint Sessions<\/strong> tab. Let\u2019s suppose that a user starts an SSH session. Here\u2019s how to check user activity logs in Linux:<\/p>\n\n\n\n<p>First, filter the sessions by the operating system. Click the <strong>More Criteria<\/strong> button and select <strong>Operating System<\/strong> in the drop-down list.<\/p>\n\n\n\n<p>Then click the <strong>Operating System<\/strong> button on the left and select your Linux OS.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020507\/1-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x595.png\" alt=\"Screenshot - Viewing SSH sessions\" class=\"wp-image-69209\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">You can then search for a session by specific commands. For example, let\u2019s find Linux sessions in which some files were deleted.<\/p>\n\n\n\n<p>Just type in the corresponding command in the search box on the right and press Enter. You can also search within sessions by other user actions, such as typed keystrokes.<\/p>\n\n\n\n<p>Once you\u2019ve found the session you need, double-click it to open it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020528\/2-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x674.png\" alt=\"Screenshot - Searching for a session by an executed command\" class=\"wp-image-69210\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">In the Session Player, you can view the screen recording and metadata from the beginning of the session.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020550\/3-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x612.png\" alt=\"Screenshot - Viewing the session in the Session Player\" class=\"wp-image-69211\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">You can configure the video player to display only executed commands and search for a command in a specific session or the entire database. To do this, choose your settings in the dropdown menu by clicking the <strong>Search <\/strong>button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020620\/4-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x447.png\" alt=\"Screenshot - Searching in the Session Player\" class=\"wp-image-69213\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">If a session is still in progress, you can view what the user is doing in real time by clicking the <strong>Live <\/strong>button. The <strong>Block User<\/strong> button in the upper right allows you to block the user manually if they pose a threat.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2023\/06\/07042519\/screenshot-9-monitoring-rdp-sessions.png\" alt=\"Screenshot - Blocking a user\"\/><\/figure>\n\n\n\n<h2  class=\"wp-block-heading mt-3\">Configuring alerts on suspicious user activity<\/h2>\n\n\n\n<p>For critical endpoints, you can configure the <a href=\"\/en\/product\/alerts-and-notifications\" target=\"_blank\" rel=\"noreferrer noopener\">alerting system<\/a> to get instant notifications whenever suspicious user activity occurs. To set this up, open the <strong>Alerts <\/strong>page.<\/p>\n\n\n\n<p>As an example, we\u2019ll set up an alert for detecting a user attempting to obtain root privileges on Linux. This is one of the pre-defined alerts available in Syteca.<\/p>\n\n\n\n<p>You can search for an alert by inputting its name in the search box. Once you find an alert, click on the <strong>Edit <\/strong>icon to configure it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020650\/5-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x348.png\" alt=\"Screenshot - Searching for a default alert\" class=\"wp-image-69214\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">The alert rules are already predefined, so you only need to assign the endpoint and specify the additional actions that will be performed if the alert is triggered.<\/p>\n\n\n\n<p>In the <strong>Assigned Endpoints<\/strong> section, click <strong>Add <\/strong>and then select the endpoints for which you want to enable the alert.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020711\/6-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x500.png\" alt=\"Screenshot - Configuring an alert\" class=\"wp-image-69215\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">In the <strong>Actions <\/strong>section, specify who will be notified via email if the alert is triggered.<\/p>\n\n\n\n<p>You can also decide which response action Syteca will automatically take when an alert is triggered. Possible response actions include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Display a warning message to a user<\/li>\n\n\n\n<li>Block the user<\/li>\n\n\n\n<li>Kill a process<\/li>\n<\/ul>\n\n\n\n<p>Once you\u2019ve configured the alert, click <strong>Finish<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020739\/7-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x540.png\" alt=\"Screenshot - Selecting response actions for an alert\" class=\"wp-image-69216\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">The person you\u2019ve designated will now receive an email if a user on the specified endpoint attempts to obtain root privileges..<\/p>\n\n\n\n<p>With Syteca, you can create your own custom alerts or enable predefined ones. You can choose to receive alerts when users try to upload files to the cloud, install an application, type a specific word, and more.<\/p>\n\n\n\n<p>To view the list of all triggered alert events, open the <strong>Alerts <\/strong>tab on the <strong>Activity Monitoring<\/strong> page. You can open a suspicious session by clicking the <strong>Play <\/strong>button \u2014 session playback starts at a selected alert event.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020802\/8-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x501.png\" alt=\"Screenshot - Viewing triggered alerts\" class=\"wp-image-69217\"\/><\/figure>\n\n\n\n\t\t<div  class=\"block-4b33c6b1-f455-4813-a18e-8b78baa0685b areoi-element pattern-read-also rounded-bg-13px mt-0\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(16, 206, 158,0.1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"p-poppins opacity-50 has-text-color\" style=\"color:#1a3b4e;font-style:normal;font-weight:500\">Learn more about<\/p>\n\n\n\n<p class=\"p-poppins\" style=\"font-size:1.38rem;font-style:normal;font-weight:600\"><a href=\"\/en\/product\/privileged-access-management\" target=\"_blank\" rel=\"noopener\">Privileged Access Management (PAM) with Syteca<\/a><\/p>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\n<h2  class=\"wp-block-heading\">Exporting a recorded session for forensic investigation<\/h2>\n\n\n\n<p>With Syteca, you can export an entire user session or just a part of it for use as evidence during forensic investigations. Exported SSH session recordings can be viewed on any computer, even without access to Syteca\u2019s interface. The exported file is encrypted and protected from modification.<\/p>\n\n\n\n<p class=\"mb-0\">To export a session, open it and click the <strong>More <\/strong>icon in the Session Player. Then select <strong>Forensic Export<\/strong> from the drop-down list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020829\/9-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x474.png\" alt=\"Screenshot - Forensic export\" class=\"wp-image-69218\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">In the pop-up window that appears, define your preferred settings and click <strong>Export<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020851\/10-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x632.png\" alt=\"Screenshot - Forensic export settings\" class=\"wp-image-69219\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">Once the export finishes, you can download the resulting file on the <strong>Forensic Export History<\/strong> tab on the <strong>Activity Monitoring <\/strong>page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020910\/11-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x393.png\" alt=\"Screenshot - Downloading an exported user session\" class=\"wp-image-69220\"\/><\/figure>\n\n\n\n<p class=\"mt-0\"><em>Note: You will need to download the SytecaForensic Player to view the exported session.<\/em><\/p>\n\n\n\n<h2  class=\"wp-block-heading\">Discovering unmanaged accounts on Linux endpoints<\/h2>\n\n\n\n<p>You can further enhance visibility and minimize security gaps by discovering and onboarding unmanaged or abandoned accounts in your Linux environment.<\/p>\n\n\n\n<p>To discover Linux accounts, first <a href=\"\/docs\/configuring-ssh-connections-for-use-in-linux-disco\" target=\"_blank\" rel=\"noreferrer noopener\">configure SSH connections for Linux scanning<\/a>.&nbsp;<\/p>\n\n\n\n<p>Once configured, open the <strong>Account Discovery<\/strong> page and select the <strong>Rules<\/strong> tab to display a list of all existing rules in the grid. Click the <strong>Add<\/strong> button in the top right to add a new rule.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17021112\/16-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x341.png\" alt=\"Screenshot - Account discovery\" class=\"wp-image-69225\"\/><\/figure>\n\n\n\n<p>In the Add Discovery Rule window that pops up, enter the name of the account discovery rule, and select <strong>Linux Discovery<\/strong> in the <strong>Type<\/strong> option.<\/p>\n\n\n\n<p>Then, specify the IP addresses to be scanned by entering one of the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"mb-2\">The range of IP addresses separated by a hyphen (e.g., \u201c10.100.10.10-10.100.10.40\u201d)<\/li>\n\n\n\n<li>A list of IP addresses separated by semicolons (e.g., \u201c10.100.10.10; 10.100.10.20; 10.100.10.30\u201d).<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17021127\/17-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x418.png\" alt=\"Screenshot - Creating a discovery rule\" class=\"wp-image-69226\"\/><\/figure>\n\n\n\n<p>For the <strong>Account Type<\/strong> option, select whether you want to scan <em>all accounts<\/em> (i.e., privileged, service, and application accounts) or only <em>privileged accounts<\/em> (i.e., manually created non-daemon accounts and the \u201croot\u201d account).<\/p>\n\n\n\n<p>Select the <strong>Public SSH keys<\/strong> checkbox to also allow scanning for accounts with public SSH keys on your Linux computers.<\/p>\n\n\n\n<p>Next to the <strong>Select account to use for scans<\/strong> option, select the Password Management account secret(s) to be used to run network scans under, for which the user has the <em>Owner<\/em> or <em>Editor Role<\/em> type permissions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17021141\/18-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x277.png\" alt=\"Screenshot - Creating a discovery rule\" class=\"wp-image-69227\"\/><\/figure>\n\n\n\n<p>If you want to run network scans automatically according to a schedule, enable the <strong>Scheduled Discovery<\/strong> toggle and select your preferred time frames.<\/p>\n\n\n\n<p>In the <strong>Actions<\/strong> section, optionally select the users or user groups to be notified by email about newly discovered accounts. Note that the corresponding users must have an email address specified in their user account (i.e., when editing or adding a user on the Users page).<\/p>\n\n\n\n<p>Then click the <strong>Save<\/strong> button to add the new account discovery rule.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17021155\/19-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x433.png\" alt=\"Screenshot - Creating a discovery rule\" class=\"wp-image-69228\"\/><\/figure>\n\n\n\n<p>The newly created rule will be displayed in the grid on the <strong>Rules<\/strong> tab. To run your created account discovery rule manually at any time (it doesn\u2019t matter whether scheduled discovery is enabled or not), click the <strong>Start<\/strong> icon next to it on the right.<\/p>\n\n\n\n<h2  class=\"wp-block-heading\">Generating reports on remote SSH connections to your endpoints<\/h2>\n\n\n\n<p>Syteca can regularly notify you about remote connections to your Linux endpoint in a summary report generated ad hoc or emailed to you according to a schedule.<\/p>\n\n\n\n<p>To generate a report, open the <strong>Reports<\/strong><em> <\/em>page and select the <strong>Session Grid <\/strong>report in the <strong>Report Type<\/strong> drop-down list. In the <strong>Date Filters<\/strong> section, select the period you want the data to be displayed for.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020937\/12-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x523.png\" alt=\"Screenshot - Generating a report\" class=\"wp-image-69221\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">Descriptions and samples of the reports are located in the right part of the interface.<\/p>\n\n\n\n<p>In the <strong>Endpoints<\/strong><em> <\/em>section, click <strong>Add <\/strong>and select the Linux endpoints you want to generate a report for. You can do this by inserting the names of endpoints in the search box.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17020953\/13-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x361.png\" alt=\"Screenshot - Configuring a report\" class=\"wp-image-69222\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">Define the report options and click the <strong>Generate Report<\/strong> button. Your report will be available to download on the <strong>Generated Reports<\/strong> tab of the <strong>Reports <\/strong>page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17021028\/14-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x426.png\" alt=\"Screenshot - Downloading a generated report\" class=\"wp-image-69223\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">You can also receive regularly scheduled reports by opening the <strong>Scheduled Report<\/strong> tab and clicking <strong>Add<\/strong>.<\/p>\n\n\n\n<p>On the <strong>Add Rule<\/strong> page that opens, select <strong>Enable scheduled report generation<\/strong>, enter a name for the rule, and click <strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17021045\/15-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux-with-Syteca-1024x465.png\" alt=\"Screenshot - Configuring a scheduled report\" class=\"wp-image-69224\"\/><\/figure>\n\n\n\n<p class=\"mt-0\">Then set the report parameters and enter the email address to which the report will be sent. Click <strong>Finish<\/strong>.<\/p>\n\n\n\n<p>Syteca will automatically create the report and send it to your email address per the defined frequency.<\/p>\n\n\n\n\t\t<div  class=\"block-5b48652c-26d6-49ff-afc2-a2b4aafbde0b areoi-element pattern-read-also rounded-bg-13px pattern-case-studies-with-img mt-5 div-a-target_blank\">\n\t\t\t\n\t\t<div class=\"areoi-background  \">\n\t\t\t<div class=\"container-fluid\" style=\"padding: 0;\">\n\t\t\t\t<div class=\"row justify-content-start\">\n\t\t\t\t\t<div class=\"col \">\n\t\t\t            <div class=\"areoi-background__color\" \n\t                        \tstyle=\"background: rgba(242, 250, 254,1)\">\n\t                        <\/div>\n\n\t                    \n\n\t                    \n\n\t                    \n\t    \t\t\t<\/div>\n\t    \t\t<\/div>\n\t    \t<\/div>\n\t    <\/div>\n\t\n\t\t\t\n\n<p class=\"p-poppins opacity-50 has-text-color\" style=\"color:#1a3b4e;font-style:normal;font-weight:500\">Case study<\/p>\n\n\n\n\t\t<div  class=\"block-cb9c78de-1767-437c-aed3-a07e60247660 areoi-element d-flex justify-content-between\">\n\t\t\t\n\t\t\t\n\n<p class=\"col-md-9 p-poppins mb-0 ms-0 mt-0 position-relative\" style=\"font-size:1.38rem;font-style:normal;font-weight:600\">A US-based Financial Services Company Effectively Monitors and Audits Privileged Users with Syteca<\/p>\n\n\n\n<figure class=\"wp-block-image size-large col-md-3 cs-img d-none d-md-flex flex-wrap align-content-end overflow-hidden\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2023\/12\/22103048\/prev-cta-casestudy-us-based-financial-services-company.png\" alt=\"\"\/><\/figure>\n\n\n\t\t\t \n\t\t<\/div>\n\t\n\n\t\t\t\n\t\t\t<a class=\"areoi-full-link\"\n\t\t href=\"\/en\/resources\/case-studies\/us-based-financial-services-company\"><\/a> \n\t\t<\/div>\n\t\n\n\n<h2  class=\"wp-block-heading\">Ensuring visibility into Linux environments<\/h2>\n\n\n\n<p>Monitoring user activity and recording SSH sessions in Linux can help your organization improve visibility throughout your IT infrastructure, promptly detect and respond to security threats, and meet specific IT compliance requirements. By recording user sessions, you can hold users accountable for their actions and provide forensic investigators with context-rich evidence of security incidents if they occur.<\/p>\n\n\n\n<p>By leveraging Syteca\u2019s user activity monitoring, privileged access management, and incident response capabilities, you can significantly boost your CISO\u2019s identity risk management efforts and enhance overall organizational cybersecurity.<\/p>\n\n\n\n\t\t<div style=\"border-radius:16px;background:linear-gradient(273deg, #F6FBFF 0.58%, #FFECEE 99.24%)\"  class=\"block-7cd09b50-d4b2-41e4-a871-7924ebe9eaf7 areoi-element container syteca-pattern-cta-1 overflow-hidden\">\n\t\t\t\n\t\t\t\n\n\t\t<div  class=\"block-a6f17f55-f7b6-46ce-bd13-af690d60e780 row areoi-element align-items-center pb-4 py-md-2 py-xl-0\">\n\t\t\t\n\n\t\t\t\n\n\t\t<div  class=\"block-9e962fe6-f77f-40f9-898c-abaef3f48ccb col areoi-element d-flex flex-wrap flex-column align-items-center align-items-md-start ps-md-4 pe-xl-5 pb-md-4 col-12 col-md-7 col-xl-6\">\n\t\t\t\n\t\t\t\n\n<p class=\"has-text-align-left text-center text-md-start p-poppins mb-2 text-28-22 has-text-color has-link-color wp-elements-cd5d0eb7bfda68e9a17141a77e826be4\" style=\"color:#0c1b33;font-style:normal;font-weight:600\">Want to try Syteca?<br>Request access to the online demo!<\/p>\n\n\n\n<p class=\"has-text-align-left text-center text-md-start lh-sm p-poppins mt-1 mb-xl-0 mx-4 mx-md-0 has-text-color has-link-color wp-elements-1ee913d2197e7efa332a009fcc95e79a\" style=\"color:#0c1b33;font-style:normal;font-weight:500\">See why clients from 70+ countries already use Syteca.<\/p>\n\n\n\n\t\t<div  class=\"block-25cb6341-1ace-44b8-adda-9b584c345622 areoi-element cta-buttons-block d-flex flex-column flex-md-row align-items-center justify-content-center mt-xl-3 pt-3\">\n\t\t\t\n\t\t\t\n\n\t\t\t\t\n\t\t<a data-bs-target=\"#hsModal-demo\" data-bs-toggle=\"modal\" \n\t\t\t\n\t\t\tclass=\"block-9638877e-7b1c-4cf8-87ce-47566a9fd958 btn areoi-has-url position-relative me-md-4 mb-3 hsBtn-demo btn-primary\"\n\t >\n\t\t\t\t\t\n\t\t\t\t\tAccess the Demo Portal \n\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t<\/a>\n\t\t\t\n\n\t\t\t \n\t\t<\/div>\n\t\n \n\t\t\t\n\t\t<\/div>\n\t\n\n\n\t\t<div  class=\"block-f840f051-f300-4ade-9e70-68d6c65e619d col areoi-element col-md-5 col-xl-6 d-none d-sm-none d-md-block\">\n\t\t\t\n\t\t\t\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2025\/07\/28215649\/cta-1-1.png\" alt=\"\"\/><\/figure>\n\n \n\t\t\t\n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t\n \n\t\t<\/div>\n\t","protected":false},"excerpt":{"rendered":"<p>Monitoring user activity on your critical endpoints is a vital part of an effective cybersecurity strategy. Monitoring both remote and local user sessions helps you ensure user accountability, manage cybersecurity risks, enable prompt incident response, and comply with relevant cybersecurity laws and regulations. This is a step-by-step guide on how to record SSH sessions in [&hellip;]<\/p>\n","protected":false},"author":56,"featured_media":69168,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62],"tags":[],"class_list":["post-42380","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-employee-monitoring"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Record SSH Sessions &amp; Monitor User Activity in Linux | Syteca<\/title>\n<meta name=\"description\" content=\"Learn how to record SSH sessions in Linux and monitor user activity on local endpoints using Syteca PAM and ITDR, with step-by-step screenshots.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Record SSH Sessions &amp; Monitor User Activity in Linux | Syteca\" \/>\n<meta property=\"og:description\" content=\"Learn how to record SSH sessions in Linux and monitor user activity on local endpoints using Syteca PAM and ITDR, with step-by-step screenshots.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring\" \/>\n<meta property=\"og:site_name\" content=\"Syteca\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-21T07:29:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-17T09:59:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17025511\/OG-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vlad Yakushkin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vlad Yakushkin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring\"},\"author\":{\"name\":\"Vlad Yakushkin\",\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/#\\\/schema\\\/person\\\/6f1833e0c456395da3acc899a27b977f\"},\"headline\":\"How to Record SSH Sessions and Monitor User Activity in Linux with Syteca [Hands-on Guide]\",\"datePublished\":\"2024-05-21T07:29:17+00:00\",\"dateModified\":\"2026-06-17T09:59:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring\"},\"wordCount\":2200,\"image\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/syteca_site_uploads.storage.googleapis.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/17025214\\\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png\",\"articleSection\":[\"Employee Monitoring\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring\",\"url\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring\",\"name\":\"How to Record SSH Sessions & Monitor User Activity in Linux | Syteca\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/syteca_site_uploads.storage.googleapis.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/17025214\\\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png\",\"datePublished\":\"2024-05-21T07:29:17+00:00\",\"dateModified\":\"2026-06-17T09:59:41+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/#\\\/schema\\\/person\\\/6f1833e0c456395da3acc899a27b977f\"},\"description\":\"Learn how to record SSH sessions in Linux and monitor user activity on local endpoints using Syteca PAM and ITDR, with step-by-step screenshots.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring#primaryimage\",\"url\":\"https:\\\/\\\/syteca_site_uploads.storage.googleapis.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/17025214\\\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png\",\"contentUrl\":\"https:\\\/\\\/syteca_site_uploads.storage.googleapis.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/17025214\\\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png\",\"width\":1920,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/linux-session-monitoring#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Employee Monitoring\",\"item\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/category\\\/employee-monitoring\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Record SSH Sessions and Monitor User Activity in Linux with Syteca [Hands-on Guide]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/\",\"name\":\"Syteca\",\"description\":\"Syteca | software to monitor privileged users and audit employee activity, detect insider threats, and protect servers in real time. Try a free demo now!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/#\\\/schema\\\/person\\\/6f1833e0c456395da3acc899a27b977f\",\"name\":\"Vlad Yakushkin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/syteca_site_uploads.storage.googleapis.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/20111332\\\/Vlad.png\",\"url\":\"https:\\\/\\\/syteca_site_uploads.storage.googleapis.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/20111332\\\/Vlad.png\",\"contentUrl\":\"https:\\\/\\\/syteca_site_uploads.storage.googleapis.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/20111332\\\/Vlad.png\",\"caption\":\"Vlad Yakushkin\"},\"description\":\"Vlad takes care of Syteca customers empowering them to fully leverage the capabilities of our platform. As a Head of Customer Support, Vlad understands our customers' needs and challenges and helps them mitigate insider threats effectively. His passion is to ensure that our customers have a positive and successful experience with our insider risk management platform. He captures his insights and translates them into valuable content for our audience.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vladyslavyakushkin\\\/\"],\"url\":\"https:\\\/\\\/www.syteca.com\\\/en\\\/blog\\\/author\\\/vlad-yakushkin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Record SSH Sessions & Monitor User Activity in Linux | Syteca","description":"Learn how to record SSH sessions in Linux and monitor user activity on local endpoints using Syteca PAM and ITDR, with step-by-step screenshots.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring","og_locale":"en_US","og_type":"article","og_title":"How to Record SSH Sessions & Monitor User Activity in Linux | Syteca","og_description":"Learn how to record SSH sessions in Linux and monitor user activity on local endpoints using Syteca PAM and ITDR, with step-by-step screenshots.","og_url":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring","og_site_name":"Syteca","article_published_time":"2024-05-21T07:29:17+00:00","article_modified_time":"2026-06-17T09:59:41+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17025511\/OG-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png","type":"image\/png"}],"author":"Vlad Yakushkin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vlad Yakushkin","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring#article","isPartOf":{"@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring"},"author":{"name":"Vlad Yakushkin","@id":"https:\/\/www.syteca.com\/en\/#\/schema\/person\/6f1833e0c456395da3acc899a27b977f"},"headline":"How to Record SSH Sessions and Monitor User Activity in Linux with Syteca [Hands-on Guide]","datePublished":"2024-05-21T07:29:17+00:00","dateModified":"2026-06-17T09:59:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring"},"wordCount":2200,"image":{"@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring#primaryimage"},"thumbnailUrl":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17025214\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png","articleSection":["Employee Monitoring"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring","url":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring","name":"How to Record SSH Sessions & Monitor User Activity in Linux | Syteca","isPartOf":{"@id":"https:\/\/www.syteca.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring#primaryimage"},"image":{"@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring#primaryimage"},"thumbnailUrl":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17025214\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png","datePublished":"2024-05-21T07:29:17+00:00","dateModified":"2026-06-17T09:59:41+00:00","author":{"@id":"https:\/\/www.syteca.com\/en\/#\/schema\/person\/6f1833e0c456395da3acc899a27b977f"},"description":"Learn how to record SSH sessions in Linux and monitor user activity on local endpoints using Syteca PAM and ITDR, with step-by-step screenshots.","breadcrumb":{"@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring#primaryimage","url":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17025214\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png","contentUrl":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/05\/17025214\/banner-How-to-Record-SSH-Sessions-and-Monitor-User-Activity-in-Linux.png","width":1920,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.syteca.com\/en\/blog\/linux-session-monitoring#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Employee Monitoring","item":"https:\/\/www.syteca.com\/en\/blog\/category\/employee-monitoring"},{"@type":"ListItem","position":2,"name":"How to Record SSH Sessions and Monitor User Activity in Linux with Syteca [Hands-on Guide]"}]},{"@type":"WebSite","@id":"https:\/\/www.syteca.com\/en\/#website","url":"https:\/\/www.syteca.com\/en\/","name":"Syteca","description":"Syteca | software to monitor privileged users and audit employee activity, detect insider threats, and protect servers in real time. Try a free demo now!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.syteca.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.syteca.com\/en\/#\/schema\/person\/6f1833e0c456395da3acc899a27b977f","name":"Vlad Yakushkin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/02\/20111332\/Vlad.png","url":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/02\/20111332\/Vlad.png","contentUrl":"https:\/\/syteca_site_uploads.storage.googleapis.com\/wp-content\/uploads\/2024\/02\/20111332\/Vlad.png","caption":"Vlad Yakushkin"},"description":"Vlad takes care of Syteca customers empowering them to fully leverage the capabilities of our platform. As a Head of Customer Support, Vlad understands our customers' needs and challenges and helps them mitigate insider threats effectively. His passion is to ensure that our customers have a positive and successful experience with our insider risk management platform. He captures his insights and translates them into valuable content for our audience.","sameAs":["https:\/\/www.linkedin.com\/in\/vladyslavyakushkin\/"],"url":"https:\/\/www.syteca.com\/en\/blog\/author\/vlad-yakushkin"}]}},"_links":{"self":[{"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/posts\/42380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/comments?post=42380"}],"version-history":[{"count":0,"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/posts\/42380\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/media\/69168"}],"wp:attachment":[{"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/media?parent=42380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/categories?post=42380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.syteca.com\/en\/wp-json\/wp\/v2\/tags?post=42380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}