Is it possible to disallow SCP protocol and allow SSH protocol?

Solution Verified - Updated -

Issue

  • The SCP protocol is decades old, and carries multiple security risks and issues that have no straightforward solutions.
  • How to disable SCP protocol and allow only SSH protocol?
  • How to disable SCP protocol?
  • How to disable scp command using SCP protocol?

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8 and below
  • SCP
  • OpenSSH

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