Skip to content

Preparation

代码库

  1. Setting up your CS144 VM using VirtualBox
  2. CS 144: Lab FAQs
  3. GDB and Debugging
  4. C++ Core Guidelines
  5. C++ Reference

虚拟机账户

username: cs144

password: 001009

ssh 连接虚拟机

ssh 连接虚拟机:ssh cs144@localhost 2222

注:XShell 中不能使用 ssh -p 2222 cs144@localhost 去连接,因为没有 -p 参数

VSCode 连接虚拟机

vscode 连接虚拟机(免密登录):

Host cs144
    HostName localhost
    User cs144
    Port 2222
    IdentityFile "C:\Users\17199\.ssh\id_rsa"
玩转VSCode插件之Remote-SSH

免密:将宿主机的 ssh key 加入到虚拟机上,然后打开虚拟机 ssh 的 PubkeyAuthentication 选项