disable right click , copy and paste features in AWS SSM

0

Hi, Need a solution like disable right click , copy and paste features in AWS SSM Below are the environment details NAME="Amazon Linux" VERSION="2023" ID="amzn" ID_LIKE="fedora"

Please guide me the solution of disabling above mentioned features

asked 10 months ago381 views
1 Answer
0

You'll need to configure the terminal settings and possibly modify user permissions or shell settings. With that being said, completely disabling these features might not be possible due to the nature of the remote sessions or user environments.

You can try and restrict the commands that users can run with via IAM policies or session manager policies, eg,

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Deny",
            "Action": "ssm:SendCommand",
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "ssm:DocumentName": [
                        "AWS-RunShellScript",
                        "AWS-RunPowerShellScript"
                    ]
                }
            }
        }
    ]
}
profile picture
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions