Created
December 6, 2012 22:57
-
-
Save pearkes/4229244 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
#!/usr/bin/env bash | |
# Run as root (sorry mom) like this: curl http://gist/test.sh | sed 's/defaulthost/pablo/g' | sudo sh | |
# This basically turns on ssh and sets a new hostname. | |
scutil --set HostName defaulthost | |
echo "Succesfully changed hostname to `hostname`" | |
echo "Enabling SSH access.." | |
systemsetup -setremotelogin on | |
echo "Succesfully enabled SSH access..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment