You can use SCP2 to transfer files between switches. You just need to "enable ssh2" on the CLI and a key will be created. Are you trying to do this without a password login?
Switch# scp2 flowtrack.py
[email protected]:flowtrack.py
Upload /config/flowtrack.py to
Keyboard-interactive authentication
Enter password for johndoe:
Connected to 192.0.2.100.
Uploading /config/flowtrack.py to /config/flowtrack.py
/config/flowtrack.py 100% 17KB 17.2KB/s 00:00
Switch#
Switch at 192.0.2.100 logs:
09/30/2015 09:05:04.28 User johndoe logout from ssh (192.0.2.200)
09/30/2015 09:05:04.21 Msg from Master : Got file flowtrack.py
09/30/2015 09:05:04.13 Msg from Master : Did password authentication for user johndoe (192.0.2.200)
09/30/2015 09:05:04.13 Login passed for user johndoe through ssh (192.0.2.200)