Force PTY allocation in ssh_config

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












To run interactive programs remotely one should use ssh -t <host>. But this -t option also has drawbacks so it's not good to use it on non-interactive programs.



My problem is: I have several machines. Some of them are for interactive programs and others for non-interactive ones. So I must remember exactly which ones need -t. Is it possible to add this in ~/.ssh/config so I don't have to remember it?



Basically what I want is this:



Host interactive
HostName example.com
User user
Option "-t"






share|improve this question

























    up vote
    1
    down vote

    favorite












    To run interactive programs remotely one should use ssh -t <host>. But this -t option also has drawbacks so it's not good to use it on non-interactive programs.



    My problem is: I have several machines. Some of them are for interactive programs and others for non-interactive ones. So I must remember exactly which ones need -t. Is it possible to add this in ~/.ssh/config so I don't have to remember it?



    Basically what I want is this:



    Host interactive
    HostName example.com
    User user
    Option "-t"






    share|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      To run interactive programs remotely one should use ssh -t <host>. But this -t option also has drawbacks so it's not good to use it on non-interactive programs.



      My problem is: I have several machines. Some of them are for interactive programs and others for non-interactive ones. So I must remember exactly which ones need -t. Is it possible to add this in ~/.ssh/config so I don't have to remember it?



      Basically what I want is this:



      Host interactive
      HostName example.com
      User user
      Option "-t"






      share|improve this question











      To run interactive programs remotely one should use ssh -t <host>. But this -t option also has drawbacks so it's not good to use it on non-interactive programs.



      My problem is: I have several machines. Some of them are for interactive programs and others for non-interactive ones. So I must remember exactly which ones need -t. Is it possible to add this in ~/.ssh/config so I don't have to remember it?



      Basically what I want is this:



      Host interactive
      HostName example.com
      User user
      Option "-t"








      share|improve this question










      share|improve this question




      share|improve this question









      asked Jul 29 at 9:15









      Cyker

      1,2651223




      1,2651223




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          The option you're looking for is RequestTTY. From the ssh_config man page:




          RequestTTY

          Specifies whether to request a pseudo-tty for the session. The argument may be one of: `no' (never request a TTY), `yes' (always request a TTY when standard input is a TTY), `force' (always request a TTY) or `auto' (request a TTY when opening a login session). This option mirrors the -t and -T flags for ssh(1).




          force is equivalent to -tt, and yes is equivalent to -t



          Host interactive
          HostName example.com
          User user
          RequestTTY yes





          share|improve this answer





















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f459149%2fforce-pty-allocation-in-ssh-config%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            The option you're looking for is RequestTTY. From the ssh_config man page:




            RequestTTY

            Specifies whether to request a pseudo-tty for the session. The argument may be one of: `no' (never request a TTY), `yes' (always request a TTY when standard input is a TTY), `force' (always request a TTY) or `auto' (request a TTY when opening a login session). This option mirrors the -t and -T flags for ssh(1).




            force is equivalent to -tt, and yes is equivalent to -t



            Host interactive
            HostName example.com
            User user
            RequestTTY yes





            share|improve this answer

























              up vote
              3
              down vote



              accepted










              The option you're looking for is RequestTTY. From the ssh_config man page:




              RequestTTY

              Specifies whether to request a pseudo-tty for the session. The argument may be one of: `no' (never request a TTY), `yes' (always request a TTY when standard input is a TTY), `force' (always request a TTY) or `auto' (request a TTY when opening a login session). This option mirrors the -t and -T flags for ssh(1).




              force is equivalent to -tt, and yes is equivalent to -t



              Host interactive
              HostName example.com
              User user
              RequestTTY yes





              share|improve this answer























                up vote
                3
                down vote



                accepted







                up vote
                3
                down vote



                accepted






                The option you're looking for is RequestTTY. From the ssh_config man page:




                RequestTTY

                Specifies whether to request a pseudo-tty for the session. The argument may be one of: `no' (never request a TTY), `yes' (always request a TTY when standard input is a TTY), `force' (always request a TTY) or `auto' (request a TTY when opening a login session). This option mirrors the -t and -T flags for ssh(1).




                force is equivalent to -tt, and yes is equivalent to -t



                Host interactive
                HostName example.com
                User user
                RequestTTY yes





                share|improve this answer













                The option you're looking for is RequestTTY. From the ssh_config man page:




                RequestTTY

                Specifies whether to request a pseudo-tty for the session. The argument may be one of: `no' (never request a TTY), `yes' (always request a TTY when standard input is a TTY), `force' (always request a TTY) or `auto' (request a TTY when opening a login session). This option mirrors the -t and -T flags for ssh(1).




                force is equivalent to -tt, and yes is equivalent to -t



                Host interactive
                HostName example.com
                User user
                RequestTTY yes






                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jul 29 at 11:59









                Wumpus Q. Wumbley

                3,9801119




                3,9801119






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459149%2fforce-pty-allocation-in-ssh-config%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay