Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question