Setup: SSH to Server
In order to start the assignment, you will need to connect to the
server via SSH using your individual account. The server address is
sivir.snu.ac.kr, and each student will be assigned a unique SSH port number
(your port number will be announced later).
You can connect to the server using Visual Studio Code (VS Code). If you encounter any issues, please contact TAs.
- After connecting to the server for the first time, it is important to
change your initial password. The initial password is your student ID (e.g.,
20XX-XXXXX). - After logging into the server, you should change your password immediately.
1. Using VS Code to connect to the server
We recommend using Visual Studio Code (VS Code) with the Remote - SSH extension to connect to the server. VS Code can be used for almost all operating systems, including Windows, Mac, and Linux.
Step-by-Step Guide
-
Install Visual Studio Code
- If you haven't already, download and install VS Code from the official website.
-
Install the Remote - SSH Extension:
- Open VS Code.
- Go to the Extensions view by clicking on the square icon in the sidebar or typing
Ctrl+Shift+X(Windows/Linux) orCmd+Shift+X(Mac). - Search for Remote - SSH and click Install.
-
Open the Command Palette:
- Open the Command Palette by typing
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac).
- Open the Command Palette by typing
-
Add New SSH Host:
- In the Command Palette, type
Remote-SSH: Connect to Host...and select it. - Then, select
+ Add New SSH Host.... - Enter the following SSH command:
ssh compsec@sivir.snu.ac.kr -p [port]- Replace
[port]with your port number. - Select for update:
- Windows:
C:\Users\[User Name]\.ssh\config. - Mac/Linux:
~/.ssh/config
- Windows:
- In the Command Palette, type
-
Connect to Host
- Open the Command Palette again (see Step 3).
- In the Command Palette, type
Remote-SSH: Connect to Host...and select it. - Now, you will see
sivir.snu.ac.kr. Select it. - For the prompts,
- Select the platform
Linux. - When asking about fingerprint, select
yes. - Enter password. (The initial password is your student ID,
20XX-XXXXX.)
- Select the platform
-
Successful Connection:
- Once connected, you will see a new VS Code window open that is connected to the remote server. You can now work directly on the server as if it were your local environment.
When using Visual Studio Code, be aware that the password prompt can appear at the top-center of the window multiple times. Ensure you respond to each prompt; otherwise, the connection will fail.
3. Change Your Password
Once you get connected to the server, you should change the password immediately for security reasons. Once logged in, change the password by typing the following command:
passwd
You will be prompted to enter the current password (20XX-XXXXX) and
then set a new password of your choice. Make sure to choose a strong
and secure password.
4. Resource Constraints of Container
Please note that the container running your connection is restricted to use the following resource limits:
- CPU Cores: 4 cores
- Memory: 8 GB
- Storage: 8 GB
These resource constraints are important because our grading system will evaluate your assignments using a container with the exactly same constraints. Therefore, ensure that your application is optimized to run efficiently within these limits. If your application needs to use more than these resource constraints, it may not perform as expected, which may downgrade your scores/grades.