Re: How to disable SCP ?

From: Paul Hink (email_at_p-hink.de)
Date: 11/07/05


Date: 7 Nov 2005 13:22:56 GMT

rong <rong@citiz.net> wrote:

> I can disable sftp by modified the /etc/ssh/sshd_config
> but,how to disable scp?

As long as the remote users can execute arbitrary commands on the
server it makes no sense to try to disable scp. Its functionality can
easily be substituted by standard userspace utilities. And as soon as
you restrict the commands that can be executed by a user (e.g. by using
the "command" option in an an authorized_keys file) the respective user
cannot use scp any more as well unless it is allowed explicitly.

Paul