# How to Audit SSH Sessions in Amazon EC2

DevFeed: [How to Audit SSH Sessions in Amazon EC2](<https://devfeed.tech/articles/how-to-audit-ssh-sessions-in-amazon-ec2-29583.md>)

Original publisher: [Read original article](<https://goteleport.com/blog/aws-ec2-ssh-session-recording/>)

Author: info@goteleport.com (Janakiram MSV)

Published: 2022-04-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Teleport](<https://devfeed.tech/sources/teleport.md>)

Topics: [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [audit](<https://devfeed.tech/topics/audit.md>), [Security](<https://devfeed.tech/topics/security.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [DynamoDB](<https://devfeed.tech/topics/dynamodb.md>), [OpenSSH](<https://devfeed.tech/topics/openssh.md>)

Tags: [amazon-cloudwatch](<https://devfeed.tech/tags/amazon-cloudwatch.md>), [amazon-dynamodb](<https://devfeed.tech/tags/amazon-dynamodb.md>), [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [audit](<https://devfeed.tech/tags/audit.md>), [aws](<https://devfeed.tech/tags/aws.md>), [bastion](<https://devfeed.tech/tags/bastion.md>), [bastion-host](<https://devfeed.tech/tags/bastion-host.md>), [cloudtrail](<https://devfeed.tech/tags/cloudtrail.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [dynamodb](<https://devfeed.tech/tags/dynamodb.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [review](<https://devfeed.tech/tags/review.md>), [s3](<https://devfeed.tech/tags/s3.md>), [security](<https://devfeed.tech/tags/security.md>), [security-events](<https://devfeed.tech/tags/security-events.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [storage](<https://devfeed.tech/tags/storage.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

A tutorial on configuring Teleport to record and audit SSH sessions on Amazon EC2 Linux instances, including centralized session playback and storing Teleport events and recordings in Amazon DynamoDB and Amazon S3.

## Source excerpt

This post is a tutorial to set up security session recording for EC2 SSH access and store logs in AWS S3 and DynamoDB.