SCP protocol is forbidden via /etc/ssh/disable_scp
Issue
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
Environment
- 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.