安裝 SSM Agent
mkdir /tmp/ssm |
關閉 requiretty
如果要讓 System Manager 能夠使用 sudo 權限的話,就必須關閉 requiretty,
不然會出現 sudo: sorry, you must have a tty to run sudo
的錯誤
sudo chmod 600 /etc/sudoers |
註解掉 requiretty
# Defaults requiretty |
Reference
- 在 Linux 实例上安装和配置 SSM 代理 https://docs.aws.amazon.com/zh_cn/systems-manager/latest/userguide/sysman-install-ssm-agent.html#agent-install-al
- How to disable requiretty for a single command in sudoers? https://unix.stackexchange.com/questions/79960/how-to-disable-requiretty-for-a-single-command-in-sudoers