Skip to content

Instantly share code, notes, and snippets.

View yeetyboi56-deprecated's full-sized avatar

yeetyboi56-deprecated yeetyboi56-deprecated

View GitHub Profile
@yeetyboi56-deprecated
yeetyboi56-deprecated / install-ssh-key.sh
Last active February 3, 2022 03:52
install my ssh key
#!/bin/bash
# SHA256(id_ed25519.pub)= 9027bc32e05f04d3ad3b16062fa62e13d88b857a966ab102e2e3332a1e18013f
key="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPqJNsgnhcAFAnBvjTljwkVnZGKXePZSZ22iYIJNjMO3 [email protected]"
echo "Assuming you are in the correct directory (~)"
# If user chose normal installation
if [ $1 == "install" ]; then
echo "The script will now create .ssh directory and install the key into .ssh/authorized_keys"