Cyber

First complete Lab, then Project

wget (short for "web-get")

Tree Command (Alternative to ls)

sudo apt-get install tree
tree <folder>
#############
#  OUTPUT:  #
#############

/home
└── folder
    ├── unit2
    ├── unit3
    │   ├── cp_leak.txt
    │   └── crackfiles.zip
    └── unit6
        ├── attrib.txt
        ├── cat.jpg
        ├── dog.jpg

PRE-REQ

Project Part: SSH Keys

  • 4096-bit SSH RSA public and private keys.

  • Commands breakdown:

    • ssh-keygen = the utility used to generate the key pair

    • -t rsa = specifies the type of key to create (e.g., rsa)

    • -C "CYB Ubuntu Key" = provides custom key comment (which will be appended at the end of the public key).

      • Usually an email address is used as a comment, but this time we're labeling it with the machine we'll use it on.

      • Think of it like a label for your key, so you don't mix it up with other keys!

  • Public key is .pub

  • Private key is no extension or .pem

View keys

3 main uses of keys: authentication, encryption integrity

Using ssh to connect to remote server

Stuck on this part (might not need):

Part 3: Encryption with SSH Keys

Assymetric encryption: - Public key: encrypt - Private key: decrypt

- creates private.pem file (longer file)

- creates publickey.pem file (shorter file)

- creates file & display, this is final step to setup

- this encrypts our secret msg with public

- to view file

- generate decrypted file

Last updated