I would like to generate and store the private authentication key for an SFTP connection securely. I would then like to display the public key for copying and pasting into the sftp server. I am unclear where the keys are stored in your examples, and if they are secure.
Any help or advice appreciated!