Troubleshooting notes · Network management

SCP to a Cisco router fails: "Administratively disabled" or "Privilege denied"

Copying a file to a Cisco IOS XE router with scp fails although SSH works. The three things IOS needs to accept an SCP upload, including scp -O for OpenSSH 9. Real output from Cisco IOS XE 17.18 and OpenSSH.

The symptom

SSH to the router works, but pushing a file to it with scp fails. The router answers Administratively disabled:

FILES# sshpass -p Local-Admin-1 scp -O /srv/images/x86_64-update.bin localadmin@10.0.0.1:unix:/x86_64-update.bin 2>&1 | tail -2
Administratively disabled.
R1# show running-config | include ip scp|aaa
aaa new-model
aaa authentication login default local
aaa authentication login CONSOLE none
aaa session-id common

Why it happens

A working SSH login isn't enough for SCP. On IOS XE the router needs: - ip scp server enable: without it, the router doesn't run an SCP server at all (Administratively disabled). - AAA exec authorization: IOS only allows SCP to users whose privilege comes through aaa authorization exec. With aaa new-model and local login but no exec authorization, the push fails with Privilege denied once the SCP server is on. - The classic SCP protocol on the client. OpenSSH 9.0 and later make scp use the SFTP protocol by default. The IOS SCP server speaks only the classic SCP protocol, so use scp -O. Without it, the router just closes the connection.

The fix

On the router:

R1(config)# ip scp server enable
R1(config)# aaa authorization exec default local

On the Linux machine, push with scp -O. Name the router's file system after the colon; on this router it's unix:, on hardware it's usually flash: or bootflash: (check with show file systems).

Check it

Compare the hash on both ends, so you know the file arrived intact:

FILES# md5sum /srv/images/x86_64-update.bin
ab25649d1840fd37be5b22af09874666  /srv/images/x86_64-update.bin
R1# verify /md5 unix:x86_64-update.bin
.Done!
verify /md5 (unix:/x86_64-update.bin) = ab25649d1840fd37be5b22af09874666
R1# dir unix: | include update
2975583  -rw-              241  Nov 26 2026 09:34:38 +02:00  x86_64-update.bin

Practise this fault

This fault is in CCNA Lab 22 of CCNA Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.

Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:

We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.