How To Use - KU-BIG/KUBIG_Wiki GitHub Wiki
1. Google Cloud Platform์์ ์ธ์คํด์ค ์์
Compute Engine -> VM ์ธ์คํด์ค -> ์ธ์คํด์ค ์ฒดํฌ -> ์์
2. SSH๋ก ์๋ฒ ์ ์
a) macOS, Ubuntu
์ ์๋ฐฉ๋ฒ
ssh -L 9999:localhost:9999 -i [sshํค ์์น] -o ServerAliveInterval=15 -o ServerAliveCountMax=3 [๋ฉํ๋ฐ์ดํฐ-SSHํค์ '์ฌ์ฉ์ ์ด๋ฆ']@[์ธ๋ถip]
์์
ssh -L 9999:localhost:9999 -i ~/.ssh/rsa-gcp-key -o ServerAliveInterval=15 -o ServerAliveCountMax=3 [email protected]
b) Windows
์ ์๋ฐฉ๋ฒ
ssh -L 9999:localhost:9999 -i [sshํค ์์น] -o ServerAliveInterval=15 -o ServerAliveCountMax=3 [๋ฉํ๋ฐ์ดํฐ-SSHํค์ '์ฌ์ฉ์ ์ด๋ฆ']@[์ธ๋ถip]
์์
ssh -L 9999:localhost:9999 -i C:\.ssh\rsa-gcp-key -o ServerAliveInterval=15 -o ServerAliveCountMax=3 [email protected]
c) ์ ์์ด ์๋ ๋
How can i get rid of " WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "
3. Docker ์คํ
sudo docker run -it -p 9999:9999 -v ~:/home hyeon95y/kubig:cpu
port9999 exists์ ๊ฐ์ ์๋ฌ ๋ฉ์์ง๊ฐ ๋ํ๋๋ฉด VM ์ธ์คํด์ค๋ฅผ ๋๊ณ ์ฌ์์ํ์ธ์!
4. Jupyter Lab ์คํ
jupyter lab --ip=0.0.0.0 --port=9999 --NotebookApp.token='' --allow-root
์ ๋ช ๋ น์ด ์คํ ํ, ์ธํฐ๋ท ๋ธ๋ผ์ฐ์ ์์ localhost:9999 ๋ก ์ ์
[์ค์] ์ธ์คํด์ค๋ฅผ ์ผ๋๋ฉด ์๊ธ์ด ๊ณ์ ๊ณผ๊ธ๋๋, ์ฌ์ฉํ์๋ ์ธ์คํด์ค๋ฅผ ๊ผญ ๊บผ์ฃผ์ธ์