How to disable SCP protocol
Issue
By default in RHEL 9, the scp
command will use the SFTP protocol instead of the SCP protocol. However it is still possible to use the SCP protocol using the -O
option. Moreover the sshd
service will allow connection of clients using the SCP protocol.
How to disable the SCP protocol completely?
Environment
- Red Hat Enterprise Linux 9
or
- Red Hat Enterprise Linux 8.10
- openssh >= 8.0p1-24.el8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.