icon mdi-theme-light-dark

Ssh · 2 articles

Ssh

>_shell-tips
  • Bash
  • Linux
  • Mac
  • Windows
  • Cheat-Sheets

sudo: sorry, you must have a tty to run sudo

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.

What are sudo and tty?What is ‘sudo: sorry, you must have a tty to run sudo’?How to solve ‘sudo: sorry, you must have a tty to run sudo’?
Defaults:myuser·updated Sep 2020·2 examples

How to manage an idle ssh connection ?

Quick and simple tips on how to handle an idle remote ssh connection from your terminal.

updated Sep 2020

© 2026 Nicolas Brousse

Follow
  • Mastodonicon mdi-mastodon
  • Pinteresticon mdi-pinterest

Disclaimers & Contacts