×
Moving ahead, this error occurs because the sudo command tries to execute a command that requires a tty. This happens mostly because we run on a Linux distribution with sudo configured by default to require a tty. Generally, this was a matter of security concern.
Mar 20, 2021
Sep 26, 2020 · Learn what is a tty and how to solve 'sudo: sorry, you must have a tty to run sudo' error when using ssh to execute a sudo remote command.
Feb 23, 2021 · I am trying to launch a linux instance using Redhat linux ami and got the error “sudo: Sorry, you must have a tty to run sudo” to run user data ...
People also ask
Aug 19, 2013 · The short answer is no, you will need to change settings to get sudo to do things differently than it currently does. sudo may be the wrong ...
Apr 15, 2022 · $ ssh hostname sudo <command> sudo: sorry, you must have a tty to run sudo. Environment. Red Hat Enterprise Linux 5, 6, 7 and 8; sudo ...
1. Configuration of sudo is incorrect. Instead of running the commands sudo is trying to request the users password. This fails as TPAM runs the commands ...
Feb 1, 2024 · I've got a client who set up an EC2 instance for me to deploy to, along with a single user who has sudo access and a .pem key.
Mar 22, 2013 · I was able to get around the issue by commenting out the requiretty in the /etc/sudoers file (based on http://unix.stackexchange.com/questions/ ...