selinux, semanage and ssh on AWS
Posted: 2015/04/06 21:12:32
All,
I've recently migrated my MX setup to AWS from a physical machine running CentOS 7. On that machine, I ran ssh on a non-standard port with selinux in enforcing mode. I.E.:
I initially had trouble with the above on the AWS instance, because the process would die (Killed.) with an out of memory error. I got around this. Here is the current state:
I could connect using port 22 with selinux enabled as described above, but now cannot connect through either port with selinux enabled. Both ports work with selinux in permissive mode.
Any thoughts? Thanks.
Orson Garnsey
I've recently migrated my MX setup to AWS from a physical machine running CentOS 7. On that machine, I ran ssh on a non-standard port with selinux in enforcing mode. I.E.:
Code: Select all
semanage port -a -t ssh_port_t -p tcp [port]
Code: Select all
ssh_port_t tcp [port], 22
Any thoughts? Thanks.
Orson Garnsey