Skip to content

Instantly share code, notes, and snippets.

@ejsuncy
Last active November 11, 2020 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejsuncy/dd9d744dd153f8c320133c7e855f0106 to your computer and use it in GitHub Desktop.
Save ejsuncy/dd9d744dd153f8c320133c7e855f0106 to your computer and use it in GitHub Desktop.
# Create git.io url
# curl -i https://git.io -F "url=https://gist.githubusercontent.com/ejsuncy/dd9d744dd153f8c320133c7e855f0106/raw/bootstrap.sh" -F "code=danbunker.k3s.bootstrap.2"
# Download this gist
# curl -L https://git.io/danbunker.k3s.bootstrap.2 -o bootstrap.sh
# chmod a+x bootstrap.sh
# sudo ./bootstrap.sh
#!/bin/sh
sudo passwd rancher
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sudo service sshd restart
ifconfig | grep 'inet '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment