access my ubuntu server windows powershell.

Everytime I try to access my ubuntu server using SSH on windows powershell get the following error message: “Permission denied (publickey,password,keyboard-interactive)”.

This a in new Ubuntu 20.04.2 server I just installed on a raspberry Pi4 and on a Vbox VM as well. I haven’t created a public/private key pair, I’m just trying to access using my user passowrd, and I want to now if I need to change some configuration(s) on my windows PC or what do I have to change on my ubuntu server so I can get access and then do the public/private key pair or if there’s already one created in linux, how can is send it my Windows machine so I can get access to the server?

I’m confused and hope you can understand my question(s) and provide a resoluton.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @roimertejeda

You can create a pair of ssh keys on your Windows machine and then copy them to your Ubuntu server running on the Raspberry Pi.

You can follow this link on how to create ssh keys on a Windows machine:

You can also temporary enable the PasswordAuthentication on the Ubuntu server in order to copy the ssh key over from the Windows machine.

The key can be copied over using the ssh-copy-id command

  1. ssh-copy-id -i ~/.ssh/ $user@IP_or_Hostname

Hope that this helps! Regards, Alex

Hi @roimertejeda,

So, let’s talk about the SSH keys. This is the most secure way there is but if you didn’t add your SSH key to your account prior to creating your Droplet, even if you create the Key now, it won’t be added.

You can read more about that here:

Having said that, you can try following this Documentation, it takes you through the process of uploading your SSH Key to an Existing Droplet:

Lastly, if it doesn’t work, you’ll need to your Droplet’s Web Console to connect to it and allow authenticating with a password. Once you have that, ou should be able to add your Key without a problem.