Skip to the content.

Week 6 Lab Report

Chester James Ramos

Reposititory

Streamlining ssh Configuration

First create a config file for having an alias with the same format as the first screenshot below. Once that is done you can now use the alias, in my case “ieng6” to login and move files as shown below.

.ssh/config file

Image

ssh ieng6 login alias

Image

scp file copying

Image

Setup Github Access from ieng6

Since I already had a public key I just had to put in the public key into github settings and access it on my user. For commiting changes I used the SSH easier tutorial and used command such as git push, git commit -m, and git add file.

Public key in github

Image

Private key on user

Image

Commiting change from ieng6

Image

Copying whole directories with scp -r

Here we can copy whole directories to our computer with scp -r ieng@account:~/directory. With this it can recursively move the files over to the ieng account and from there we can use basic commands such as ls and cd to move ourselves to the directory within our repository. We can use ; to seperate commands while using a “” to show commands we run in ieng6 when we login.

Moving directory to ieng6

Image

Logging in and running test (1 test is currently not fully done so thats why there is a failure)

Image

Combining scp and ssh and running test

Used command scp -r cs15lsp22zzz@ieng6.ucsd.edu:~/directory; ssh ieng6 "cd markdown-parse; make Test" Image Image