Recent Posts
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Today
Total
관리 메뉴

갈라파고스

[Linux] Warning: No xauth data; using fake authentication data for X11 forwarding. 본문

연구/Linux

[Linux] Warning: No xauth data; using fake authentication data for X11 forwarding.

9yelin9 2022. 8. 23. 11:48

원인

연구실 컴퓨터를 맥으로 바꾼 이후로 이 에러가 자꾸 발생해서 오늘은 기어코 해결하겠다는 마음으로 찾아봤다.

맥이 디자인은 참 예쁘긴 한데 뭔가 짜잘한 이슈들이 좀 많음...

 

해결

sudo 권한이 있는 경우 sudo vi /etc/ssh/ssh_config 

sudo 권한이 없는 경우 vi ~/.ssh/config

를 입력하여 파일을 연다.

 

다음 코드를 파일 맨 아래에 입력한다.

 Host *
 	XAuthLocation /opt/X11/bin/xauth

 

:wq로 파일을 저장하고 나온다.

sudo 권한이 있는 경우 source /etc/ssh/ssh_config

sudo 권한이 없는 경우 source ~/.ssh/config

를 입력하여 파일을 한 번 실행시켜준다.

 

참고

https://serverfault.com/questions/422908/how-can-i-prevent-the-warning-no-xauth-data-using-fake-authentication-data-for

 

How can I prevent the warning No xauth data; using fake authentication data for X11 forwarding?

Every time I initiate an ssh connection from my Mac to a Linux (Debian) I do get this warning: No xauth data; using fake authentication data for X11 forwarding. This also happens for tools that are

serverfault.com

 

Comments