I can't log into my droplet. This is another post I made about the issue that did not solve my problem, but explains some of what I have tried. https://stackoverflow.com/questions/52917470/permission-denied-publickey-digital-ocean/52972508?noredirect=1#comment92856534_52972508
What I just tried:
ssh-key gen. Naming the keys
portfolio. Could this naming be a problem? The only keys that work on my machine are the keys with the default name
id_rsa, but there cannot be more than one set with that name. There is a line in the debug that says
Offering public key: RSA SHA256:blahblah /Users/ME/.ssh/id_rsaso it looks like it connecting to the wrong key??? I have tried
ssh -i ~/.ssh/portfolio ME@139.xx.xx.xxxto connect to a specific private key called
Permission denied (publickey).
Log into server inside DO console.
nano /.ssh/authorized_keys. Copy in my public key called portfolio. Got this here
- Create a new user and save.
- Test the key pair from terminal on my mac with
ssh -v -i ~/.ssh/portfolio newUSer@139.XX.XXX.XXX
Permission denied (publickey). Obviously logging in does not work either. Why? The keys match and are in place yet still do not find each other.
Further debugging: Using the digital ocean console, currently the only way I can access my droplet, I see that copy/paste does not work. Pasting in a public key results in a string of totally different characters than the real key. This even happens in nano.