How to disable SCP protocol

Solution Verified - Updated -

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
  • openssh-8.7p1-34.el9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content