From 403c08195106bb7a6d2021fbce8a2297b542d866 Mon Sep 17 00:00:00 2001 From: Sarah M Brown Date: Tue, 7 Nov 2023 11:09:41 -0500 Subject: [PATCH] more annotation --- notes/2023-11-02.md | 55 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/notes/2023-11-02.md b/notes/2023-11-02.md index f25c481..913d421 100644 --- a/notes/2023-11-02.md +++ b/notes/2023-11-02.md @@ -4,7 +4,7 @@ kernelspec: name: python3 --- -## Building +# SSH Keys and Building Code ```{warning} @@ -22,6 +22,11 @@ ssh -l brownsarahm seawulf.uri.edu ```{code-block} console brownsarahm@seawulf.uri.edu's password: Last login: Tue Oct 31 13:41:16 2023 from 172.20.131.240 +``` + + +```{code-cell} bash +:tags: ["skip-execution"] [brownsarahm@seawulf ~]$ logout Connection to seawulf.uri.edu closed. ``` @@ -55,6 +60,7 @@ The key's randomart image is: |oo=**X+++=+. | ``` +it asks you for an optional password to lock the key itself. ```{code-cell} bash :tags: ["skip-execution"] @@ -648,7 +654,7 @@ void main () { } [brownsarahm@n005 compilec]$ - +``` ## Prepare for Next Class @@ -671,4 +677,47 @@ void main () { ## Experience Report Evidence -## Questions After Today's Class \ No newline at end of file +## Questions After Today's Class + +### What else can we create ssh keys for? + +You can use them for GitHub and most developer tools that have authentication provide this option. + +### Why did we need a .i, .s, .o files? + +When you build your code, your tools often go from source code to executable without saving the file at the intermediate points. We went through and stopped it at the same + +### How often are SSH keys used by a developer? + +I cannot give a speific number, but they are used for remote systems and can be used for GitHub. + +### Why did we not need to do the intermediate steps when we changed the program? + +We did not *need* to stop at the intermediate points the first time, we stopped it after each step to look at it, so that we could learn about all of the steps. + +We alwasy have the option to do the whole process at once. + +### can you use/import other libraies into seawulf and use them in a program made in seawulf? + +Yes. To an extent, there are limits to what you can install, but the basic ones are typically here. + +You can see what is there with `module available` + +### When compiling using the following line: gcc hello.c -o hello does this remove the .o .s and .i file because it just created the executable file hello? + +It does not remove them, but it does skip writing the file *out* at those intermediate points. + + +### Are the public and private keys the primes themselves, or are they something derived from the primes? + +The product of the primes is part of the public key along with an exponent integer. The two primes are also used to compute the private key. The primes themselves need to be private, but are actually not needed to be know, so they are generally discarded. + + +### What are the main uses of doing this? + +Understanding the steps of building can help you debug. + +### Will this ever be seen as a better alternative to write code as opposed? + +Sometimes the terminal is the fastest tool you have available, like today. +