Force PTY allocation in ssh_config
Clash 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"
ssh ssh-config
add a comment |Â
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"
ssh ssh-config
add a comment |Â
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"
ssh ssh-config
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"
ssh ssh-config
asked Jul 29 at 9:15
Cyker
1,2651223
1,2651223
add a comment |Â
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered Jul 29 at 11:59
Wumpus Q. Wumbley
3,9801119
3,9801119
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password