<aside> ©️ Creative Commons License
This work by kdotwei is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
</aside>
<aside> <img src="/icons/map-pin_green.svg" alt="/icons/map-pin_green.svg" width="40px" /> C O N N E C T T O S E R V E R
ssh -i <key-path> <username>@<server-ip>
</aside>
安裝這些工具
sudo apt install -y \\
systemd \\
curl wget \\
gcc g++ make \\
vim nano \\
sudo \\
openssh-server \\
git \\
lsof \\
net-tools
開啟 VS Code 並安裝 Remote - SSH Extension.
點擊 Remote - SSH 的 ICON
點擊「加」的 ICON
將 Task 2 中使用的指令貼上
選擇你的家目錄底下的 .ssh/config
<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> I N F O R M A T I O N
可以開啟 Terminal(先不要使用 SSH 連線),輸入 echo $HOME
就會得到家目錄的位置。
</aside>
<aside> <img src="/icons/report_yellow.svg" alt="/icons/report_yellow.svg" width="40px" /> W A R N I N G
在截圖中 /Users/kwei/
是我的家目錄,你的家目錄可能會在 /Users/<你的系統使用者名稱>/
或 /User/<你的系統使用者名稱>/
等位置。
</aside>
將左側 SSH 展開,選擇 sdc-3xx
,其中 xx
是你們的機器 ID。
<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> I N F O R M A T I O N
截圖中 vm-300
中的 300
就是我的 ID,你的 ID 不會是 300
。
</aside>
在 sdc-id
點擊「箭頭」或「資料夾+」都可以
連線後,點擊截圖中紅圈 icon
開啟資料夾(目錄)
開啟路徑是 task2 中建立的 vue-training
專案。
信任啦,哪次不信任