VScode로 server에 원격 접속
F1 or Ctrl+Shift+p -> Remote-SSH: Connect Current Window to Host...

Add New SSH Host...

[user]@[hostname]:[port]

+ Add New SSH Host 위에 접속할 원격 서버 클릭

Password 입력

가상환경 설치
$ conda init
$ conda create -n [가상환경명] python=[버전] -y
$ conda activate [가상환경명]
$ pip install -r requirements.txt
가상환경 설치가 안될 때 해결 방법
# Error message
PermissionError: [Errno 13] Permission denied: '/opt/anaconda3/pkgs/cache/xxxxxxxx.info.json'
# Solution
$ sudo chown -R [사용자명]:[사용자그룹] /opt/anaconda3
-> 사용자명과 사용자 그룹을 동일하게 입력
코드 실행했을 때 CUDA error가 발생했을 때
# Error Message
CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero.
# Solution
$ sudo apt install nvidia-driver-[version]
$ sudo apt update
$ sudo apt upgrade
$ sudo reboot