Nexus passwordless SFTP copy with public key not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2019 01:19 AM - edited 02-06-2019 01:27 AM
Hello,
I have a Nexus 9000 and unfortunately can't use Prime for management. I want to copy the current configuration to a sftp server using passwordless public key authentication. I have configured a local user without a password and generated a public/private key pair for it, like described in Chapter: Configuring SSH and Telnet. I have copied the public key to the sftp server and now try to use the following command to copy the configuration
copy running-configuration scp://nw_backup@nwbackup.example.com/backup/config.txt vrf default
But it's asking for a password. I can also see in the sftp server debug logs that the client doesn't use public key authentication. I have copied the private key to my desktop and can login with it without entering a password.
Nexus9# show username nw_backup keypair ************************************** rsa Keys generated:Thu Jan 24 14:12:46 2019 ssh-rsa AAAA...Oxsew== bitcount:262144 fingerprint: MD5:d3:ad:6f:7...:d5:23 ************************************** could not retrieve dsa key information **************************************
System version: 7.0(3)I6(1)
What is the problem? Do I have to set a local password for the account or is it not allowed to use an _ in the username? The copy works, if I enter the password for the user on the sftp server.
Thanks,
Patrick
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 06:31 PM
