Created
September 21, 2014 07:16
-
-
Save yoshi0309/3351f7832be11405b4bf 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 -ex | |
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 | |
perl -pi -e 's/^#?Port 22$/Port 22\nPort 443/' /etc/ssh/sshd_config | |
/etc/init.d/ssh stop | |
/etc/init.d/ssh start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment