create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/bash | |
| # Required system tools | |
| SYSTEM_DEPS=( | |
| curl | |
| jq | |
| unzip | |
| wget | |
| ) |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
| #!/usr/bin/env bash | |
| # install-zsh-stack.sh — bootstrap git, zsh, Oh-My-Zsh and five plugins | |
| set -euo pipefail | |
| ############################################################################## | |
| # 0. Set theme | |
| ############################################################################## | |
| THEME="${THEME:-bira}" | |
| echo "# → Theme to install: $THEME" |
| # inspired by the https://gist.github.com/jaytaylor/86d5efaddda926a25fa68c263830dac1 | |
| registry="http://${registry_user}:${registry_passwd}@${registry_url}/v2" | |
| for repo in `cat repos-todel`; do | |
| for tag in $(curl -sSL "${registry}/${repo}/tags/list" | jq -r '.tags[]?'); do | |
| tagURL="${registry}/${repo}/manifests/${tag}" | |
| sha256=$(curl -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -sSL -I ${tagURL} | awk '$1 == "Docker-Content-Digest:" { print $2 }' | tr -d $'\r') | |
| deleteURL="${registry}/${repo}/manifests/${sha256}" | |
| echo $deleteURL | |
| # curl -v -sSL -X DELETE $deleteUR | |
| done |
| # SSH hardening (run as root). From https://www.sshaudit.com/hardening_guides.html#ubuntu_24_04_lts (mirror: https://oam7575.github.io/ssh_hardening_guides/index.html) | |
| #!/bin/bash | |
| set -eux pipefail | |
| # Re-generate the ED25519 and RSA keys | |
| sudo rm -f /etc/ssh/ssh_host_* | |
| sudo ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N "" | |
| sudo ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" | |
| #!/usr/bin/env bash | |
| # install-zsh-stack-macos.sh — Homebrew + zsh + Oh My Zsh + plugins (macOS) | |
| set -euo pipefail | |
| THEME="${THEME:-bira}" | |
| echo "# → Theme to install: $THEME" | |
| # 1) Homebrew | |
| if ! command -v brew >/dev/null 2>&1; then | |
| echo "🍺 Installing Homebrew..." |