cse15l-lab-reports

TUTORIAL: HOW TO LOG INTO A COURSE-SPECIFIC ACCOUNT

In this tutorial, we will be using the ieng6 server.

This is also a walkthrough of what I have done in this week’s lab.


Step 1. Install Visual Studio Code

Note: This is an important step as having VSCode installed will make it easier for us to see what is going on as we write our webpage. In VSCode, we are able to see the outcome of whatever we are writing (left-hand side) on the right-hand size; like a split screen. We can identify any mistakes early on by having an image of what we are writing.

To download VSCode, navigate to the Official VSCode Website. Follow the instructions for a successful download. Once downloaded, your screen should look like this once you launch the application:

vscodewelcome

Step 2. Remotely Connecting to Another Server

Congratulations! You have successfully connected to a remote server! :)

Step 3. Trying out Commands

In this part, we will be trying out some commands on our newly connected account.

Now you know how to run commands on a remote server! :D

Step 4. Moving Files with the scp Command

Note: The scp command stands for “Secure Copy Protocol,” and it does just that: securely copies a file from one host to the other, remotely.

We just successfully copied a file from one computer to another remotely! :D

Step 5: Using an SSH key

$ ssh-keygen

Which should bring up something like this afterwards:

image

PS C:\Users\Viann\OneDrive\Documents\GitHub\cse15l-lab-reports> ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\Viann/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in C:\Users\Viann/.ssh/id_rsa.
Your public key has been saved in C:\Users\Viann/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:YGLAwtiIYQWR6me7yce/Q4tLLR8HLUGkjO9gk1ieOsY viann@DESKTOP-LCQR4P1
The key's randomart image is:
+---[RSA 3072]----+
|=O*.  .o         |
|*oo.o o          |
|.. oooo.         |
|. +.+o .o        |
|.. B . oS.       |
|..oo+ ..o        |
| Eo o+oo..       |
|. o.o+ooo        |
|   +o.o+o        |
+----[SHA256]-----+
# on your client
$ ssh cs15lfa22<>@ieng6.ucsd.edu

(type out your password)

Note: the <> is a placeholder for the last two letters on your account.

# now on the server

$ scp /Users/your name/.ssh/id_rsa.pub cs15lfa22@ieng6.ucsd.edu:~/.ssh/authorized_keys

(Note: use your username and the path you saw from the command above)

Step 6: Attempting for Remote Running to be even More Pleasant

$ scp WhereAmI.java OtherMain.java; javac OtherMain.java; java WhereAmI

Please note: as mentioned previously, I was unable to get my ssh part working from the previous step, which also prevented me from completing this step.


With that, we have concluded this very short tutorial! Hopefully it was helpful as I walked you through what I did for my lab as well.