AWS CloudInit Instance Start sshd on port 443

By polfilm,

  Filed under: Bash
  Comments: None

#!/bin/bash -ex
perl -pi -e 's/^#?Port 22$/Port 443/' /etc/ssh/sshd_config
service sshd restart || service ssh restart

CentOS 7 (x86_64) with Updates HVM
ami-e4ff5c93 (eu-west)

Comments are closed for this post.