ssh keys for NX-OS to access SFTP
Enabling contained, passwordless sftp from NX-OS switches to a Linux server Note: This post is barely note-to-self grade documentation. Pulled together long after originally implemented, it may be missing necessary commands or information. Hopefully this is enough to be able to reproduce the concepts if ever useful elsewhere, but not likely to work as-is without experimentation, research, and validation. Goal Allow switches to push (e.g. config backups, à la tftp, but with connection security) and pull (e.g. OS image files) to and from a linux server. Notable characteristics of this solution Makes use of standard linux ugo permission heirarchy Switches use ssh public key authentication for sftp connnections Ssh daemon configuration and linux group membership allows switches to: Read and write from a common directory Have all their public keys in a single file on the server not each switch with its own ~/.ssh/authorized_keys Which in turn means no need for unique home directories Only h...