카테고리 없음
[ssh] Pseudo-terminal will not be allocated because stdin is not a terminal. Activate the web console with: systemctl enable --now cockpit.socket
냐옴
2024. 4. 23. 09:15
접속하려는 서버 OS 는 `Rocky Linux 9.3`
아래 코드를 쉘 스크립트로 실행시 메시지가 나옴
$ ssh $REMOTE_HOST <<- EOF
Pseudo-terminal will not be allocated because stdin is not a terminal.
Activate the web console with: systemctl enable --now cockpit.socket
-T 옵션을 주면 `Pseudo-terminal will not be allocated because stdin is not a terminal.` 메시지는 사라진다
## -T Disable pseudo-terminal allocation.
$ ssh -T $REMOTE_HOST <<- EOF
Activate the web console with: systemctl enable --now cockpit.socket
cockpit 설정 관련 참고