lab-reports

View project on GitHub

Streamlining SSH Configuration

Follow the instructions below to save some typing!

Step 1

Open Windows Explorer and navigate to the folder called .ssh. You should usually find it under the user profile for your computer.

image

Step 2

Inside the folder, right click and select Open with Code. This opens the folder on VSCode.

image

Step 3

Click on the New File button (or right click and click on New File) and name it config. Do NOT add an extension to the file.

Step 4

Add the following code in the file. Replace the cs15lwi22xxx with your ieg6 username.

Host ieng6
	HostName ieng6.ucsd.edu
	User cs15lwi22xxx

Step 5

Now, you can simply use the command ssh ieng6 to login, using the username and the public key present in the folder. If it does not work, add the following line of code to the file to help it navigate to the public key file in the folder. Remember to indent the line with the Tab key, keeping it in line with the preceeding lines of code. Also, replace the <your profile name> with the name of your user profile on your computer.

 	IdentifyFile C:\Users\<your profile name>\.ssh\id_rsa

SCP

You can now use the scp command by simply typing scp <filename.ext> ieng6:~/ to copy files. Replace <filename.ext> with the name of the file to be copied. As you see below, the file has been copied successfully (fifth from the bottom).

image


image