Sudo: a terminal is required to read the password;

Hi Joe, i did all that, and the key works i can ssh via terminal no issues to the other server
but problem is in cloudmin (ssh keys–add ssh key) when i try and add that key for authentication, it keeps giving error-- Failed to save SSH key : Existing key file does not contain an SSH key.
which key should i choose in the cloudmin ?

I found a thread from 2013, same issue
Can’t add SSH private keys to CloudMin - Cloudmin - Virtualmin Community

one example
mlbarrow

Jan '14

I ran into this problem as well using Cloudmin GPL (7.4.kvm) and removing those lines did not work for me.

I looked at the code (server-manager-lib-funcs.pl, check_ssh_key_data) and it looks like the issue is the regexp back match: $3 should be $4. I made the patch to my local copy and I can now add a private key properly via upload or pasting it in.

But there seems to be a larger issue here. It appears that the first key generated MUST either be generated by Cloudmin or be a private key. Once one gets over that hurdle, one can add public keys that get added to newly-created VMs (which was my original intent). Is that a bug in the code, UI, or an issue with my understanding?