I hereby claim:
- I am neitsab on github.
- I am neitsab (https://keybase.io/neitsab) on keybase.
- I have a public key ASC8l6M-5FmU-jXN3UrwvBigDnG1JwBeYnQPHCpm86Ouawo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # This script sets up passwordless SSH and sudo on the app servers | |
| # Data from https://kodekloudhub.github.io/kodekloud-engineer/docs/projects/nautilus#infrastructure-details | |
| # Generate an SSH key pair | |
| ssh-keygen -t ed25519 -f "$HOME/.ssh/id_ed25519" -N "" | |
| # Disable SSH client strict host key checking | |
| sudo -S sed -i "/StrictHostKeyChecking/s/^#//;s/ask/no/" /etc/ssh/ssh_config <<< mjolnir123 |
| ## systemd | |
| # Test whether sudo exists and who's the calling user | |
| if command -v sudo >/dev/null 2>&1; then | |
| [[ "$EUID" -ne 0 ]] && alias sctl='sudo systemctl' || alias sctl='systemctl' | |
| else | |
| alias sctl='systemctl' | |
| fi | |
| alias enable='sctl enable' | |
| alias disable='sctl disable' |
| [Distribution] | |
| ; Distribution= | |
| ; Release= | |
| ; Repositories= | |
| ; Mirror= | |
| ; Architecture= | |
| [Output] | |
| ; Format= | |
| ; Output= |
I hereby claim:
To claim this, I am signing this object: