How TTY differs from an ordinary file?Screenshot of X from ttyHow do I run a command on a TTY from a SSH...

How to politely refuse a startup's equity?

Is there a wealth gap in Boston where the median net worth of white households is $247,500 while the median net worth for black families was $8?

Decreasing star count

Polyhedra, Polyhedron, Polytopes and Polygon

Is there a list of words that will enable the second player in two-player Ghost to always win?

What is the most efficient way to write 'for' loops in Matlab?

How can I write an interdental lateral in phonetic transcription?

Unethical behavior : should I report it?

Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?

Melee or Ranged attacks by Monsters, no distinction in modifiers?

What is the difference between position, displacement, and distance traveled?

Word for showing a small part of something briefly to hint to its existence or beauty without fully uncovering it

Correlation length anisotropy in the 2D Ising model

Trapped in an ocean Temple in Minecraft?

Can a table be formatted so that math mode is in some columns and text is in others by default?

How should we understand λαμβάνω in John 5:34?

Recommendations or Experiences on Archiving Mailing Data

How to tar a list of directories only if they exist

Is a topological space considered to be a class in set theory?

Am I allowed to use personal conversation as a source?

Why isn't there any 9.5 digit multimeter or higher?

Commercial jet accompanied by small plane near Seattle

How to kill my goat in Goat Simulator

Is there an antonym for "spicy" or "hot" regarding food (NOT "seasoned" but "spicy")?



How TTY differs from an ordinary file?


Screenshot of X from ttyHow do I run a command on a TTY from a SSH session?Can I switch to another process in another tty# terminal from an ssh terminal?look up the device from its tty file?RHEL Serial TTYHow do I start tty from the command-line?sshfs:type of file differs from mountpointHow to change brightness from tty?How to restart KDE Plasma from tty?How to exit from TTY mode






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I'm trying to understand ssh's -t option:




-t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-
based programs on a remote machine, which can be very useful, e.g. when implementing
menu services. Multiple -t options force tty allocation, even if ssh has no local
tty.




So, TTY is a device. It has a descriptor. STDIN, STDOUT and STDERR are descriptors. But they do not necessarily refer to a TTY device. -t option forces them to refer to a TTY device. Is this the correct way of reasoning in order to understand what this option does?



And what is so special about TTY which may not be achieved using ordinary STDIN, STDOUT and STDERR?









share





























    0















    I'm trying to understand ssh's -t option:




    -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-
    based programs on a remote machine, which can be very useful, e.g. when implementing
    menu services. Multiple -t options force tty allocation, even if ssh has no local
    tty.




    So, TTY is a device. It has a descriptor. STDIN, STDOUT and STDERR are descriptors. But they do not necessarily refer to a TTY device. -t option forces them to refer to a TTY device. Is this the correct way of reasoning in order to understand what this option does?



    And what is so special about TTY which may not be achieved using ordinary STDIN, STDOUT and STDERR?









    share

























      0












      0








      0








      I'm trying to understand ssh's -t option:




      -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-
      based programs on a remote machine, which can be very useful, e.g. when implementing
      menu services. Multiple -t options force tty allocation, even if ssh has no local
      tty.




      So, TTY is a device. It has a descriptor. STDIN, STDOUT and STDERR are descriptors. But they do not necessarily refer to a TTY device. -t option forces them to refer to a TTY device. Is this the correct way of reasoning in order to understand what this option does?



      And what is so special about TTY which may not be achieved using ordinary STDIN, STDOUT and STDERR?









      share














      I'm trying to understand ssh's -t option:




      -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-
      based programs on a remote machine, which can be very useful, e.g. when implementing
      menu services. Multiple -t options force tty allocation, even if ssh has no local
      tty.




      So, TTY is a device. It has a descriptor. STDIN, STDOUT and STDERR are descriptors. But they do not necessarily refer to a TTY device. -t option forces them to refer to a TTY device. Is this the correct way of reasoning in order to understand what this option does?



      And what is so special about TTY which may not be achieved using ordinary STDIN, STDOUT and STDERR?







      ssh tty





      share












      share










      share



      share










      asked 3 mins ago









      Igor LiferenkoIgor Liferenko

      2881 silver badge12 bronze badges




      2881 silver badge12 bronze badges






















          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f532674%2fhow-tty-differs-from-an-ordinary-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f532674%2fhow-tty-differs-from-an-ordinary-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...