IT Nebula

블로그 이미지
별나라추장

Article Category

분류 전체보기 (2)
Java (1)
Server (0)

Recent Post

Recent Comment

Calendar

«   2025/12   »
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

Archive

My Link

  • Total
  • Today
  • Yesterday

참고 URL : http://www.cyberciti.biz/faq/how-to-fix-x11-forwarding-request-failed-on-channel-0/


1. 현재상태.

a. Local (장비명 A)

- OS : Mac OS X Yosemite (10.10.4)

- IP : 172.31.xxx.xxx

b. Remote (장비명 B)

- OS : CentOS 5.10

- IP : 172.31.xxx.xxx


2. 원하는 결과

- B에서 X-window 프로그램을 구동하면 A의 모니터에 프로그램이 실행이된다.


3. Step

a. Linux 에서
(http://www.cyberciti.biz/faq/how-to-fix-x11-forwarding-request-failed-on-channel-0/ 참조)

- /etc/ssh/sshd_config 수정

$ sudo vi /etc/ssh/sshd_config 
--- modify two line ----
X11Forwarding yes
X11UseLocalhost no
----------------------
$ sudo /etc/init.d/sshd reload

- sudo yum install xauth

b. Mac OS에서

a. X Quartz  설치

- 방법 1 : Application -> Utility -> X11 실행 -> 2.7.7 설치 페이지로 이동 : 2.7.7에는 버그가 있다고 함.

- 방법 2 : http://xquartz.macosforge.org/trac/wiki/X112.7.8
  -> 2.7.8_rc1 설치

b. Logout + Login

c. Appliation -> Utility -> X11 실행

d. X11 Menu -> terminal

e. run this command on terminal

ssh -Y deploy@172.31.224.9 

f. X window application 실행.



and