we have the following problem. In order to backup the configuration of our switches, we made an alias 'save' which calls a script that saves the configuration and then sends a backup of the configuration via tftp.
So far so good, but now i am trying to do the same thing using scp in order to be more secure.
In the script, i try to call do the following:
copy running-config scp://backup_user:email@example.com/filename
But unfortunately the copy command on the Nexus switches doesn't seem to take the password, unless its entered via commandline. (It works on Catalyst)
Ok, so i tried to install a public SSH Key, so the login wouldn't need a password.
We authenticate against Active Directory, and when trying to install a key for my user, i get the following message:
# username my_user sshkey file bootflash:///my_pubkey.pub
user:my_user account is already created through remote authentication.
Please first delete that account using "no" option.
Any ideas regarding this? Is there any way to provide the password within the script or install a key for all users?
I know, it's not ideal but always better then TFTP.