Created
October 30, 2020 17:55
-
-
Save headStyleColorRed/ec0a9edb544324d02ee42560e9a69457 to your computer and use it in GitHub Desktop.
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 | |
# | |
# This command shoud be run with "bash whatever.sh" instead of "sh whatever.sh" | |
# First generate key and make folder | |
ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< y"" ; | |
# Create authorized_keys | |
touch ~/.ssh/authorized_keys | |
# Copy public key in authorized key | |
cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment