Skip to content

Instantly share code, notes, and snippets.

@fidanf
Last active August 21, 2024 07:45
Show Gist options
  • Save fidanf/c76b4a7c60d10eb8c1909edb191b5379 to your computer and use it in GitHub Desktop.
Save fidanf/c76b4a7c60d10eb8c1909edb191b5379 to your computer and use it in GitHub Desktop.
ssm-agent
#!/bin/bash
pushd /tmp
wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb
# Update the package list again
sudo dpkg -i amazon-ssm-agent.deb
# Start the SSM agent
sudo systemctl start amazon-ssm-agent
# Enable the SSM agent to start at boot
sudo systemctl enable amazon-ssm-agent
rm -f /tmp/amazon-ssm-agent.deb
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment