Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Cannot ssh into my droplet with or with out password / with or without ssh pairs
I am revisiting my application on digitalocean but my keys were on a hard drive that just died. I tried using putty to initiate ssh and it asked me for my username, which I did not know so I went about changing the password inside digital ocean.
I was able to access the terminal inside digital ocean but it would not let me modify any files. I suppose I need to change permissions but since I lost root access, I am at a loss as to what to do.
Every time I try to enter either via git bash or putty, I get an error. In gitbash,
Permission denied (publicKey).
In Putty, Server refused your key. I followed about 11 tutorials and no luck. I have the private key stored in my .ssh folder as private.ppk as well as my public key.
I copied the single line code into the interface provided by digitalocean and gave it a unique name. In putty, I pointed to the private key.
If anyone can help me with this I would greatly apprecate it. Thank you in advance.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×