Created
November 10, 2012 12:33
-
-
Save alexmic/4050955 to your computer and use it in GitHub Desktop.
ssh daemon listen to port 443 on EC2
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 | |
perl -pi -e 's/^#?Port 22$/Port 443/' /etc/ssh/sshd_config | |
service sshd restart || service ssh restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment