develog

[ssh] Pseudo-terminal will not be allocated because stdin is not a terminal. Activate the web console with: systemctl enable --now cockpit.socket 본문

카테고리 없음

[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 설정 관련 참고

https://access.redhat.com/documentation/ko-kr/red_hat_enterprise_linux/8/html/managing_systems_using_the_rhel_8_web_console/installing-the-web-console_getting-started-with-the-rhel-8-web-console

 

1.2. 웹 콘솔 설치 및 활성화 Red Hat Enterprise Linux 8 | Red Hat Customer Portal

Access Red Hat’s knowledge, guidance, and support through your subscription.

access.redhat.com

 

Comments