Created
February 14, 2019 19:31
-
-
Save colehocking/bb678a6e5895634435724c12d97905ee to your computer and use it in GitHub Desktop.
Fix sudo hanging on remote servers
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
#!/bin/bash | |
# This may take 45-90 seconds to complete; hang in there! | |
hostname | (echo -n "127.0.0.1 " && cat) | sudo tee -a /etc/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment