By mrdinghy
Basically, for some reason the copy paste does not work between my local machine where I created the key pair and pasting into console into the authorized_keys file. It won’t recognize the correct case of the paste. Really odd.
I need to do this because my pass phrase for the existing key does not work. I am 99% sure that its the original , correct passphrase.
I would like to avoid creating a whole new droplet.
Thanks Steve
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @mrdinghy,
How are you trying to paste the information into your Web Console. Are you using the key combinations CTRL + V or CTRL + SHIFT + V. If you are not, you should use the second option I mentioned - CTRL + SHIFT + V. In terminals, usually the pasting and copying is done with CTRL + SHIFT. This is because the CTRL + C and CTRL + V key combinations are reserved for other stuff.
Please try with the suggestion and let me know how did it go.
Regards, KFSys
It never did go that way. I tried everything from new keyboard. The cntrl-shift-v and mouse right paste never got a clean version on the DO console. I had to ftp a file with the correct key to the server (thank god that worked) and renamed this to authorized_keys. Works for now… thanks
Hello, mrdinghy
Keep in mind that you can also put the key in a file hosted on any Dropbox or remote server and then you can just download it via the console using curl or wget
This should do the job for you as well.
The other option is to temporary enable the PasswordAuthentication from no to yes in order to access your droplet using password and then once you’ve entered your key to disable the PasswordAuthentication again. This way is considered more secure than uploading the key to a Dropbox in case you don’t have any other server to us.
sudo nano /etc/ssh/sshd_configPasswordAuthentication from “no” to “yes” and save the filesudo nano ~/.ssh/authorized_keyssudo nano /etc/ssh/sshd_configPasswordAuthentication from “yes” to “no” and save the fileHope that this helps! Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.