ssh無法登錄,提示Pseudo-terminal will not be allocated because stdin is not a terminal.


當遠程通過ssh登錄主機時出現Pseudo-terminal will not be allocated because stdin is not a terminal. 錯誤

 
字面意思是偽終端將無法分配,因為標准輸入不是終端。
 
所以需要增加-tt參數來強制偽終端分配,即使標准輸入不是終端。
to force pseudo-tty allocation even if stdin isn't a terminal.
 
參考樣例如下:
ssh -tt user1@host1 -p 9527

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM