본문 바로가기

개발

PuTTY 설치 후 가상 환경 원격 접속

1. PuTTY download

Download PuTTY: latest release (0.82)

 

Download PuTTY: latest release (0.82)

This page contains download links for the latest released version of PuTTY. Currently this is 0.82, released on 2024-11-27. When new releases come out, this page will update to contain the latest, so this is a good page to bookmark or link to. Alternativel

www.chiark.greenend.org.uk

 

2. VMware 포트 설정

sudo apt install

 

sudo apt install openssh-server

 

sudo systemctl status ssh

 

inactive 상태일 경우

sudo systemctl start ssh

 

sudo systemctl status ssh 명령어를 확인하여 다시 확인

 

 

포트 확인

netstat -tnlp

22번 포트가 열린 것을 알 수 있다

 

 

IP 확인

ifconfig

 

 

SSH 접속용 계정 생성 (root 계정 사용 시 생략 가능)

sudo adduser [username]

 

 

3. PuTTY 접속

 

가상 환경 login ID 찾기 명령어

whoami

 

원격 접속 완료

 

 

4. PuTTY로 가상환경 JAVA 환경 설정

which java

 

실제 위치 확인 (지정 경로의 심볼릭 링크를 따라가 최종 실제 파일 위치 출력)

readlink -f /usr/bin/java

 

JAVA 환경 설정

sudo nano /etc/profile

 

JAVA 환경 변수 설정 완료

echo $JAVA_HOME