Last active
February 17, 2023 12:39
-
-
Save yhojann-cl/ba485e1a650acb72c9c9fa50a2ce09b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
mkdir -p /home/ubuntu/.ssh/; | |
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB6vyJZZYawVFHzydvZvqrxmlOYnwNpNvYquI8r9+4Z+7MinaBGIMK2G2GQdQ1JDQl0IaUeT9xxXxlcjzXDJMKITyzfIeogBy6ocsROG15eNN5uPeW7OZno9P4bYE1W40mtxxaqu8WrbDI4FOomZufhcKpa30u5O/sG2j1K/pprT2k4PCptSiJPR6ZP/+IDCfm2g8jk1Waya2K5y2et6VciRJnFlbNlFM0Qgl8mS1rj7U9YrVNXrEG0s0QVB3yal7QWu4Q/xhHZm+T5z00EseSu/Yity7HBHaWc2krgMiW/yVuvEz2Q8Xs5bMRDOKf84Ss51nailqYtQYhx1HAS8w5' >> /home/ubuntu/.ssh/authorized_keys; | |
chmod 600 /home/ubuntu/.ssh/authorized_keys; | |
chown -R ubuntu:ubuntu /home/ubuntu/.ssh; | |
mkdir -p /root/.ssh/; | |
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB6vyJZZYawVFHzydvZvqrxmlOYnwNpNvYquI8r9+4Z+7MinaBGIMK2G2GQdQ1JDQl0IaUeT9xxXxlcjzXDJMKITyzfIeogBy6ocsROG15eNN5uPeW7OZno9P4bYE1W40mtxxaqu8WrbDI4FOomZufhcKpa30u5O/sG2j1K/pprT2k4PCptSiJPR6ZP/+IDCfm2g8jk1Waya2K5y2et6VciRJnFlbNlFM0Qgl8mS1rj7U9YrVNXrEG0s0QVB3yal7QWu4Q/xhHZm+T5z00EseSu/Yity7HBHaWc2krgMiW/yVuvEz2Q8Xs5bMRDOKf84Ss51nailqYtQYhx1HAS8w5' >> /root/.ssh/authorized_keys; | |
chmod 600 /root/.ssh/authorized_keys; | |
chown -R root:root /root/.ssh; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment