태그

2024년 4월 7일 일요일

네이버클라우드 서버 X11 Forwarding 설정 방법

Linux 서버를 원격으로 접속하는 방법

GPU 서버 - Ubuntu

서버에서 우분투 GUI 패키지를 설치합니다.

apt-get update apt-get install -y ubuntu-desktop xorg xrdp xserver-xorg mesa-utils xauth gdm3

dpkg-reconfigure 명령어를 실행하여 X 모드와 NVIDIA 그래픽 카드 환경을 설정합니다.

dpkg-reconfigure xserver-xorg nvidia-xconfig

/etc/ssh/sshd_config 파일에서 X11Forwarding, X11DisplayOffset, X11UseLocalHost, UseLogin 설정을 변경합니다.

X11Forwarding yes X11DisplayOffset 10 X11UseLocalHost no UseLogin no

X11 세션 인증 기록파일을 생성하고 권한을 조정합니다.

touch /root/.Xauthority chmod 600 /root/.Xauthority

/etc/hosts 파일에 xauth display session 정보를 찾아가기 위한 default 정보를 추가합니다.

127.0.0.1 호스트명

서버를 재부팅하여 Display 구성을 업데이트합니다.

reboot

클라이언트 프로그램인 Xming을 설치하고 실행하여 X11 forwarding 접속을 설정합니다.

서버로 ssh 접속한 후, xclock 등의 프로그램을 실행하여 X11 display 포워딩 동작을 확인할 수 있습니다.

GPU 서버 - CentOS

서버에서 gnome desktop package을 설치합니다.

yum -y groups install "GNOME Desktop" yum install -y xorg-x11-apps

X 모드와 NVIDIA 그래픽 카드 환경을 설정합니다.

nvidia-xconfig

/etc/ssh/sshd_config 파일에서 AddressFamily, X11Forwarding, X11DisplayOffset, X11UseLocalHost, UseLogin 설정을 변경합니다.

AddressFamily inet X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no UseLogin no

X11 세션 인증 기록파일을 생성하고 권한을 조정합니다.

touch /root/.Xauthority chmod 600 /root/.Xauthority

/etc/hosts 파일에 xauth display session 정보를 찾아가기 위한 default 정보를 추가합니다.

127.0.0.1 호스트명

서버를 재부팅하여 Display 구성을 업데이트합니다.

reboot

클라이언트 프로그램인 Xming을 설치하고 실행하여 X11 forwarding 접속을 설정합니다.

서버로 ssh 접속한 후, xclock 등의 프로그램을 실행하여 X11 display 포워딩 동작을 확인할 수 있습니다.

일반 서버 - Ubuntu

서버에서 우분투 GUI 패키지를 설치합니다.

apt-get update apt-get install -y ubuntu-desktop xorg xrdp xserver-xorg mesa-utils xauth gdm3

/etc/ssh/sshd_config 파일에서 X11Forwarding, X11DisplayOffset, X11UseLocalHost, UseLogin 설정을 변경합니다.

X11Forwarding yes X11DisplayOffset 10 X11UseLocalHost no UseLogin no

X11 세션 인증 기록파일을 생성하고 권한을 조정합니다.

touch /root/.Xauthority chmod 600 /root/.Xauthority

/etc/hosts 파일에 xauth display session 정보를 찾아가기 위한 default 정보를 추가합니다.

127.0.0.1 호스트명

서버를 재부팅하여 Display 구성을 업데이트합니다.

reboot

클라이언트 프로그램인 Xming을 설치하고 실행하여 X11 forwarding 접속을 설정합니다.

서버로 ssh 접속한 후, xclock 등의 프로그램을 실행하여 X11 display 포워딩 동작을 확인할 수 있습니다.

일반 서버 - CentOS

서버에서 gnome desktop package을 설치합니다.

yum -y groups install "GNOME Desktop" yum install -y xorg-x11-apps

/etc/ssh/sshd_config 파일에서 AddressFamily, X11Forwarding, X11DisplayOffset, X11UseLocalHost, UseLogin 설정을 변경합니다.

AddressFamily inet X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no UseLogin no

X11 세션 인증 기록파일을 생성하고 권한을 조정합니다.

touch /root/.Xauthority chmod 600 /root/.Xauthority

/etc/hosts 파일에 xauth display session 정보를 찾아가기 위한 default 정보를 추가합니다.

127.0.0.1 호스트명

서버를 재부팅하여 Display 구성을 업데이트합니다.

reboot

클라이언트 프로그램인 Xming을 설치하고 실행하여 X11 forwarding 접속을 설정합니다.

서버로 ssh 접속한 후, xclock 등의 프로그램을 실행하여 X11 display 포워딩 동작을 확인할 수 있습니다.

댓글 없음:

댓글 쓰기

네이버클라우드플랫폼 SFC(Service Function Chain) 및 Transit VPC 설명

 요즘은 사이버 보안에 대한 요구가 더욱 강해지고 있습니다. 국가 클라우드 컴퓨팅 보안 가이드라인 업데이트와 같은 법적 조치는 보안 관제의 중요성을 강조하며, 보다 체계적이고 통합된 접근 방식이 필요하다는 것을 보여주고 있습니다. 이런 ...