Privilege denied.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Connection to x.x.x.x closed by remote host.
Transferred: sent 2912, received 3872 bytes, in 7.4 seconds
Bytes per second: sent 396.0, received 526.6
debug1: Exit status 0
To resolve the above error, ensure you have this in your aaa configuration
aaa authorization exec default local none
You can now go ahead and copy the files you need via scp just like you're copying them to/from another Linux machine, i.e. the command format does not change.
As always, do not forget to save your configuration in the event that you need the functionality you've added later, e.g for regular backups over scp from the router to a server. Otherwise, you can undo the changes when you're done copying your files to the router.debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Connection to x.x.x.x closed by remote host.
Transferred: sent 2912, received 3872 bytes, in 7.4 seconds
Bytes per second: sent 396.0, received 526.6
debug1: Exit status 0
To resolve the above error, ensure you have this in your aaa configuration
aaa authorization exec default local none
You can now go ahead and copy the files you need via scp just like you're copying them to/from another Linux machine, i.e. the command format does not change.