Enabling SSH V2 (required for SFTP)

switch(config)# ip ssh version 2
NOTE:

As a matter of policy, administrators should not enable the SSH V1-only or the SSH V1-or-V2 advertisement modes. SSHv1 is supported on only some legacy switches (such as the Switch Series 2500).