Disabling SFTP without disabling SSH

Disable SFTP while allowing SSH to remain active.

Before you begin

Enhanced secure mode must be enabled. For information about enabling enhanced secure mode, see Enabling enhanced secure mode.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Enable the SSHv2 server:

    no ssh sftp enable

  3. Save the configuration file:

    save config