This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |