i'm trying open port ssh (443) on ami centos, without success. found script ubuntu made "gugol", worked ubuntu, have not managed make work on centos.
the script
#!/bin/bash -ex perl -pi -e 's/^#?port 22$/port 443/' /etc/ssh/sshd_config service sshd restart || service ssh restart
first, @ security groups server , check port 443 allowed on ec2 see http://docs.aws.amazon.com/awsec2/latest/userguide/using-network-security.html#describing-security-group
next on server check port 443 isn't being used service. root on server do
ss -ln |grep 443 there should no listen lines listed. no output @ good
on centos port isn't declared explictly in /etc/ssh/sshd_config there commented line of it
find commented line, remove # @ start, alter port 443
then, root issue "service sshd restart"
Comments
Post a Comment