07-27-2018 07:21 AM - edited 03-10-2019 01:03 AM
Hello all,
I would like to copy an image that i have in one switch to all other switches on production.
I used the below but test file hasn't been copied
SWITCH#copy flash:test.txt scp:test.txt
Address or name of remote host []? 192.168.1.5
Destination username [admin]?
Destination filename [test.txt]?
Writing test.txt
0 bytes copied in 80.000 secs (0 bytes/sec)
Thoughts?
Thank you
Solved! Go to Solution.
07-27-2018 07:33 AM
Hi, If I correctly remember SCP works only if you have ssh access on the device.
You can try to enable a tftp server on your switch that has the file to propagate:
conf t
tftp-server flash:test.txt
and using "copy tftp flash" command from the console of the switch that must receive the file.
Regards.
07-27-2018 07:33 AM
Hi, If I correctly remember SCP works only if you have ssh access on the device.
You can try to enable a tftp server on your switch that has the file to propagate:
conf t
tftp-server flash:test.txt
and using "copy tftp flash" command from the console of the switch that must receive the file.
Regards.
07-27-2018 07:45 AM
Hi,
Thank you. It worked!!
Is there any way to use ssh as it is more secure?
07-27-2018 08:07 AM
To be honest I'm not sure that you can use scp between cisco devices. Probably you can use scp between cisco and linux server.
In order to have a little bit of security during file transfer you can configure an ACL to allow only authorized switches.
Regards.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide