SCP to a Cisco

I’ve ran across this problem before and there is really no clear documentation on this procedure so here it is.

Assumptions
* You’ll already need to have an SSH capable image on the device. This doesn’t work from a factory image that doesn’t support SSH.

You need the following command on your IOS box.

ip scp server enable

Then you simply need to know which filesystem to copy to.

r1#dir
Directory of sup-bootdisk:/

1 -rw- 149969316 Oct 5 2012 02:35:02 -07:00 c7600rsp72043-adventerprisek9-mz.122-33.SRE6.bin

Then from your workstation (with SSH access to the router in question)

workstation$ scp c7600rsp72043-adventerprisek9-mz.122-33.SRE8.bin r1:sup-bootdisk:/c7600rsp72043-adventerprisek9-mz.122-33.SRE8.bin

The authenticity of host ‘r1 (1.1.1.1)’ can’t be established.
RSA key fingerprint is 4d:a8:2c:2b:33:65:7b:33:e2:18:8b:49:0d:bb:54:4f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘r1,1.1.1.1’ (RSA) to the list of known hosts.
user@r1’s password:
c7600rsp72043-adventerprisek9-mz.122-33.SRE8.bin 16% 24MB 36.4KB/s 55:59 ETA

Voila. Secure Copy to your Cisco.

Advertisements