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 포워딩 동작을 확인할 수 있습니다.
댓글 없음:
댓글 쓰기