Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added exercise/solutions/images/cmd_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise/solutions/images/cmd_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise/solutions/images/mac-linux_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise/solutions/images/mac-linux_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise/solutions/images/putty_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise/solutions/images/putty_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise/solutions/images/putty_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise/solutions/images/putty_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 98 additions & 0 deletions exercise/solutions/part-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Logging in

The following are procedures for logging in to the COARE HPC via the following OS: Windows, Mac, and Linux.

## Table of Contents

- [For Windows](#for-windows)
- [PuTTY](#putty)
- [Command Prompt (for Windows 10 only)](#command-prompt-for-windows-10-only)
- [For Mac / Linux](#for-maclinux)

## For Windows

### PuTTY

1. Download and run PuTTY application.

- [32-bit:](https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe)
- [64-bit:](https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe)

2. Set port number to **22** and the **Host Name** to **saliksik.asti.dost.gov.ph**.

![Set Port Number](../solutions/images/putty_2.png)

3. On the left panel under Category, collapse the **Connection** option and select the **SSH** option, and then click **Auth**. Select **Browse** to attach your **private key** (.ppk file) for authentication. Then click **Open**.

![Set Port Number](../solutions/images/putty_3.png)

4. Select **Yes** when prompted by a PuTTY Security Alert Window.

![Set Port Number](../solutions/images/putty_4.png)

5. When the terminal opens, enter your COARE credentials that should have been sent to your email.

6. You are now inside the HPC frontend if you see this (see image below) on your terminal.

![Set Port Number](../solutions/images/putty_6.png)

**NOTES:**

- Accessing HPC must be passwordless unless you have a passphrase during the generating of keys.
- If you want to use your key (generated using PuTTY) in OpenSSH, check this tutorial on [converting PuTTY (.ppk) key to SSH Key](https://www.simplified.guide/putty/convert-ppk-to-ssh-key).
- You cannot use your OpenSSH keys to PuTTY and vice versa.

### Command Prompt (for Windows 10 only)

1. Open **Command Prompt** or **Windows PowerShell**.
2. Type command:

```
ssh <username>@saliksik.asti.dost.gov.ph
```

Useful options:
| Flag | Description |
| ----------------- | ------------------------------------------------------------ |
| -i <private-keys> | Indicate the private key to be used |
| -v | Increase verbosity |
| -vv, -vvv | Enable additional verbosity for even more debugging messages |

3. Type **Yes** to add the host in your known hosts.

![Set Port Number](../solutions/images/cmd_3.png)

4. You should now be inside the HPC frontend.

![Set Port Number](../solutions/images/cmd_4.png)

**Notes:**

- Logging in must be passwordless unless you have a passphrase during the generating of keys.
- If you want to use your key (generated using PuTTY) in OpenSSH, check this tutorial on [converting PuTTY (.ppk) key to SSH Key](https://www.simplified.guide/putty/convert-ppk-to-ssh-key).
- You cannot use your PuTTY keys to OpenSSH and vice versa.

## For Mac/Linux

1. Launch your Terminal application and type:

```
ssh <username>@saliksik.asti.dost.gov.ph
```

Useful Options:
| Flag | Description |
| ----------------- | ------------------------------------------------------------ |
| -i <private-keys> | Indicate the private key to be used |
| -v | Increase verbosity |
| -vv, -vvv | Enable additional verbosity for even more debugging messages |

2. Type **Yes** to add the host in your known hosts.

![Set Port Number](../solutions/images/mac-linux_2.png)

3. You are now inside the HPC Frontend.

![Set Port Number](../solutions/images/mac-linux_3.png)

**NOTE:** Logging in must be passwordless unless you have a passphrase during the generating of keys.
12 changes: 12 additions & 0 deletions exercise/solutions/part-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
> This is a paragraph. First line.
> Next line.
> Third line.
> There should be no extra spacing between each line.
> _**This line is both italic and bold!**_
>
> There is a blank space above.
> This <sub>line</sub> of <sup>text</sup> is <sub>wavy.</sub>

My favorite equation is:

$$ \frac{-b \pm \sqrt{b^2 -4ac}}{2a} $$
7 changes: 7 additions & 0 deletions exercise/solutions/part-3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# **Exercises**

- [x] Part 1 - [Solution](part-1.md)
- [x] Part 2 - [Solution](part-2.md)
- [x] Part 3 - [Solution](part-3.md)

By: [Kathleen Hanna D. Fusilero](mailto:kathleen.fusilero@smc.pshs.edu.ph)