selinux allow secure copy SCP

Support for security such as Firewalls and securing linux
Post Reply
ron7000
Posts: 109
Joined: 2019/01/15 20:00:28

selinux allow secure copy SCP

Post by ron7000 » 2019/09/19 13:15:38

for centos scp is allowed to happen... from other linux system to my centos-7.6 system.

rhel blocks scp (but allows ssh); in rhel if i setenforce 0 then scp is allowed to it.

what is are selinux commands to properly allow scp to happen (like in centos) so that i can keep selinux enabled as enforcing?

User avatar
TrevorH
Forum Moderator
Posts: 26515
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: selinux allow secure copy SCP

Post by TrevorH » 2019/09/19 16:28:24

rhel blocks scp (but allows ssh); in rhel if i setenforce 0 then scp is allowed to it.
Not out of the box it doesn't. You've done something weird to your RHEL box if so.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Security Support”