I have a Linux-VPS, using it as GIT- and HTTP-Server.
Git-server: git-http-backend via vhost
When I log me in via SSH, everything is fine.
But if I open a second SSH-Connection, I get this error:
stdin: is not a tty
I use ssh for years and have never seen such an error. I searched around for over 1.5 hours…
While I wrote this, the error got even more strange — now the error comes on every connection!
I haven’t found any solution that helped me.
For reasons I do not understand (but see later), your shell is not set to interactive; just issue, on the remote server,
this will make the shell interactive and you will be good to go. At this point you may have to source your .bashrc file, because the standard ones are often provided with the following lines, located just at the top of the file:
case $- in *i*) ;; *) return;; esac
This checks whether among the shell flags ($-) there is an i, for interactive; if it is not present, it skips sourcing the file. hence the need to now run
which will give you your standard environment. I strongly discourage you from executing bash -i automatically, for instance inside your .bashrc file: executing an automatic script that sets the shell to interactive is an oxymoron, and is equivalent to pointing a loaded gun to your temple.
As to why this error message arises, I can only speculate:
your ISP allows a small number of simultaneous PTYs to be allocated to each user; it is for instance GitHub's policy (it allows zero PTYs), but cannot really see the advantage in allowing a small, but non-zero number. But then, there may be someone smarter than I who can cast a light on this...
you are trying to ssh from within a reverse shell, a well-known problem to pentesters. There are ways around it.
it is something related to either the oldish version of Secure Shell Client you are using, or to Windows, but in either case I can be of little help.
Answered by MariusMatutiae on December 18, 2020
0 Asked on February 2, 2021 by young-marx
1 Asked on February 1, 2021 by dolf-andringa
0 Asked on February 1, 2021 by midknyte
0 Asked on February 1, 2021 by mike-t
1 Asked on February 1, 2021 by user1262837
12 Asked on February 1, 2021 by sieppl
7 Asked on February 1, 2021 by rlh
2 Asked on January 31, 2021 by dmitriy-potapov
2 Asked on January 31, 2021 by gregh
1 Asked on January 31, 2021 by horst-walter
1 Asked on January 31, 2021 by quadrivics
1 Asked on January 31, 2021
2 Asked on January 31, 2021 by klaatu_nikto
9 Asked on January 30, 2021 by christopher-gwilliams
2 Asked on January 30, 2021 by sigstackfault
1 Asked on January 30, 2021 by owensteam
1 Asked on January 30, 2021 by jazerix
Get help from others!