Disable SFTP while allowing SSH to remain active.
Enhanced secure mode must be enabled. For information about enabling enhanced secure mode, see Enabling enhanced secure mode.
enable
configure terminal
no ssh sftp enable
save config