1 Answer
- Newest
- Most votes
- Most comments
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"
]
}
}
}
]
}
answered 10 months ago
Relevant content
- asked 10 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago