Lab Report 3 Week 6
May 7th, 2022. Tianyang Xu.
This report will include three sections:
- Streamlining ssh Configuration
- Setup Github Access from ieng6
- Copy whole directories with
scp -r
Streamlining ssh Configuration
-
First, I changed into the .ssh directories on my local computer using the command
cd .ssh
. Then, usingvim config
to edit the config file. -
I copied the codes from lab 5 writeup into config file.
-
By entering the
ssh ieng6
, I can now connect to the remote server easily. -
Moreover, I am able to copy the whole directory from my local computer to the remote server using a single command. You can see from the below images, all files in the markdown-parse have been copied from my local computer to the remote server.
Setup Github Access from ieng6
-
First, here is the SSH keys stored on Github
-
Then, the private key is stored in the .ssh/config file
-
Using the ieng6 server computer, I can commit a change of file to Github. The commit command in the below picture. Here is the commit Link
Copy whole directories with scp -r
-
In the first section, I have already copied a whole directory from local computer to the ieng6 computer using the
scp -r
command. -
Now, I will compile and run the test on ieng6 server.
-
Finally, I can copy from local computer to the remote computer and run the test on the server using a single line of command.