A
A
Aleksandr Yurchenko2019-07-17 11:10:21
git
Aleksandr Yurchenko, 2019-07-17 11:10:21

Git keeps popping up "stdin: is not a tty" (Windows 10), what is it?

Hello.
When you try to perform any operation with the repository (push, pull, fetch), this inscription constantly appears:

stdin: is not a tty

And the operations are going well. With this, in fact, the question is connected - is it worth paying attention to it?
In a similar question , this error (and is it an error? Or just a warning) appeared when trying to download composer, this inscription immediately appears when working with the repository and does not affect the functionality in any way.
OS: Windows 10
Terminal: Git for Windows 2.22.0.windows.1 (64bit)
Repository cloned from the host I use hostIq

Answer the question

In order to leave comments, you need to log in

1 answer(s)
2
20ivs, 2019-07-17
@yaleksandr89

By default, when you run a command on the remote machine using ssh, a TTY is not allocated for the remote session. This lets you transfer binary data, etc. without having to deal with TTY quirks. This is the environment provided for the command executed on computerone.
However, when you run ssh without a remote command, it DOES allocate a TTY, because you are likely to be running a shell session. This is expected by the ssh [email protected] command, but because of the previous explanation, there is no TTY available to that command.
If you want a shell on computertwo, use this instead, which will force TTY allocation during remote execution:
ssh -t [email protected] 'ssh [email protected]'
This is typically appropriate when you are eventually running a shell or other interactive process at the end of the ssh chain. If you were going to transfer data, it is neither appropriate nor required to add -t, but then every ssh command would contain a data-producing or -consuming command, like:
ssh [email protected] 'ssh [email protected] "cat /boot/vmlinuz"'
from here
in other words, don't pay attention to this nonsense. Or is there a way to hide it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question