What I wish to do is automatically back up the configuration of all of my devices via SSH. I want to create a user specifically for this purpose, whose only capability is to remotely scp the startup-config from each device.
I am unable to determine what 'privilege exec level <privilege>' command I need to do to enable this. Everything I can think of results in 'Privilege denied' on the remote hosts. Debugging of SSH indicates that the remote session conducts the actual login process successfully.
You can use $t and $h in the archive file name to substitute the current time and hostname respectively.
Try this, you don't have to configure any username on the Router for backup purpose.
The router automatically uploads the runing config to a SCP server .
You just need to provide the SCP username/password and path to the SCp server
And then mention the time interval in Minutes.
myRouter1(config-archive)#path scp://scpuser:[email protected]/myRouter-config
myRouter1(config-archive)#time period 1440