Skip to content

Latest commit

 

History

History
107 lines (55 loc) · 3.6 KB

lab-report-1-week-2.md

File metadata and controls

107 lines (55 loc) · 3.6 KB

Welcome to CSE 15L

My name is Ali and I will guide you on how to log in a course-specific account in this tutorial.


  • VS Code

First step is to install VS Code. You can download VS Code through this link VSCode.

Screen Shot 2022-03-31 at 6 23 56 PM


  • Remote Connecting

Second you are going to connect to a remote system using SSH. If you are using a Windows you need to install openSSH.

  1. Look up your course-specifc account using this Link.

  2. Open a terminal in VSCode and type the following command: ssh [email protected]

Note) replace the "zz" with your course-specifc user.

  1. Enter yes when asked:

Are you sure you want to continue connecting (yes/no/[fingerprint])?

  1. Enter your password and you should be logged in!

Screen Shot 2022-03-31 at 6 50 13 PM


  • Commands

Next you are going to try running some commands. Start by typing ls in your terminal, this should list all the files available.

You can find more commands to test on Canvas Modules.

Screen Shot 2022-03-31 at 6 28 48 PM


  • SCP

Next your are going to move files with SCP. SCP allows you to copy file(s) from your computer to a remote computer.

  1. In your terminal, type: scp file.java [email protected]:~/

Note) replace file.java with a file that you create, compile and run.

  1. Enter your password. (Same as the one you used for SSH)

  2. Then log in into ieng with SSH again and type ls in your terminal. You should be able to see the file in your home directory

Screen Shot 2022-03-31 at 6 54 52 PM


  • SSH Key

Now you are going to set up SSH Key. This will allow you to login using keys instead of having to type your password everytime you login to ieng with SSH.

  1. On your computer, type ssh-keygen in the terminal

  2. Enter: /Users/user-name/.ssh/id_rsa

Note) Change "user-name" with your own.

Tip) Use the image as a reference

  1. Enter passphrase (empty for no passphrase)

  2. Now if your try to login with ieng with SSH, you should be able to without entering your password!

Screen Shot 2022-03-31 at 7 11 43 PM


  • Remote Running

Finally you are going to learn how to optimize remote running.

  1. You can write command in quotes at the end of SSH i.e) ssh [email protected] "ls"

Note) This command will login in a list the home directory on the remote server directly

  1. You can run multiple commands using semicolon ;

I.e) cp WhereAmI.java OtherMain.java; javac OtherMain.java;

Screen Shot 2022-03-31 at 7 16 23 PM


Contragulations on completing the tutorial!

If you have any questions feel free to come to office hours or tutor hours for help.

Good Luck!