
를 사용할 때 다음과 같은 오류 메시지가 나타납니다 ssh -v -Y
. 서버 운영체제는 모하비입니다. 무엇이 잘못되고 있는지 아는 사람이 있나요?
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Remote: No xauth program; cannot forward X11.
X11 forwarding request failed on channel 0
답변1
클라이언트와 서버 모두 xauth 프로그램을 찾을 수 없다고 불평합니다. "debug1: No xauth program" 메시지는 클라이언트에서 발생하며 xauth
로컬에서 복사본을 찾을 수 없음을 의미합니다. "원격: xauth 프로그램이 없습니다. X11을 전달할 수 없습니다." 메시지가 서버에서 나오며, 이는 xauth도 찾을 수 없음을 나타냅니다. 기본 위치는 client 및 server 이지만 /usr/X11R6/bin/xauth
공급자가 이를 변경할 수 있습니다.
고객의 경우 이 작업을 다음에서 수행할 수 있습니다..ssh/config:
XAuthLocation /some/path/to/xauth
서버의 경우 원격 서버 위치에 위치를 설정해야 합니다.sshd_config:
XAuthLocation /opt/X11/bin/xauth
구성을 수정한 후에는 실행하여 sshd -t
구성을 확인한 다음 재부팅하여 sshd
파일을 다시 읽어야 합니다.
답변2
dnf를 사용하여 xauth를 설치해야 했습니다.
dnf install xauth
그런 다음 모든 것이 예상대로 작동하기 시작했습니다. 이전 Redhat 시스템의 경우 위 명령에서 "dnf" 대신 "yum"을 사용합니다.