I’m trying to connect to machine one with ssh and then connect to another machine two with ssh. But get this error:
ssh user@computerone.com 'ssh otheruser@computertwo.com'
stdin: is not a tty
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When logging into a shell, the remote host assumes that the connection is done by a human user. Therefore, it is reasonable to expect that they have control over the standard in on the client. That is to say, the user is giving input on a terminal through the keyboard. If the remote host detects that the user is not human (because the input is not a terminal – tty, but another process), it may warn the user about this unexpected condition.
A demonstration of the discussed misbehavior and how to avoid it (
man sshand look for -t for a more thorough explanation).…and the error:
You may want to make a tunnel instead:
Then, on a different terminal:
Use IP addresses such as 192.168.0.11 if DNS aliases are not configured on the remote end.