SCP protocol is forbidden via /etc/ssh/disable_scp

Solution Verified - Updated -


Trying to copy a file to a remote RHEL 9 server results in the follow error.

$ scp file rhel93-server:
SCP protocol is forbidden via /etc/ssh/disable_scp
lost connection


  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • openssh-clients-8.0p1-19.el8_8
  • openssh-clients-7.4p1-21.el7
  • openssh-clients-5.3p1-123.el6_9

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