Pseudo-terminal will not be allocated because stdin is not a terminal.

조회 수: 75 (최근 30일)
M N
M N 2024년 6월 12일
댓글: M N 2024년 6월 13일
When trying to ssh to linux device form matlab scirpts, i get these messages as in screenshot, any thoughts why this can happen and how can we get terminal?

채택된 답변

Pratik
Pratik 2024년 6월 13일
Hi,
From what I can understand, you are facing error of "Pseudo-terminal will not be allocated because stdin is not a terminal". The error occurs when trying to ssh to linux devices from matlab scripts.
When we use ssh to connect to a remote machine, ssh allocates a pty on the remote machine and connects it to our local terminal. In this case, ssh doesn’t allocate a pty on the remote machine, because stdin isn’t a terminal. This causes problems if the command we’re trying to run expects to be run in a terminal. The command may fail or behave unexpectedly, and ssh prints this error message.
One way to fix this error is to use the -t option for ssh to force pseudo-TTY allocation. The -t option tells ssh to allocate a pty on the remote machine even if stdin isn’t a terminal. However, sometimes one -t option isn’t enough and we need to use two -t options or -tt for short. The -tt option forces tty allocation even if ssh has no local tty.
Please refer to the following documentation for more information:
I hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by