By Brent K
Hello,
I’m following this tutorial: digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
In step four “Add Public Key Authentication” it says “To generate a new key pair, enter the following command at the terminal of your local machine (ie. your computer)”
I enter “ssh-keygen” in my “command prompt” and receive the following error:
C:\Users\bkozlowski>ssh-keygen ‘ssh-keygen’ is not recognized as an internal or external command, operable program or batch file.
What am I doing wrong?
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 @bkozlowski, welcome to the community.
I have just the answer for your question. The tutorial you saw was assuming that both the host and the server machines ran linux.
ssh-keygen is a UNIX only command and of course doesn’t work on a Windows computer.
There is a way around this using a program called PuTTYGen. I have a video on youtube that shows how to use it and then use PuTTY+Pagent to load your ey in and connect to the server. I also show how to add the key to the server from a Windows computer.
https://www.youtube.com/watch?v=p0BrVHZBViY&ab_channel=EverythingAppleProJr
Please let me know if you have any questions
-BeanJr
Hi,
These commands are for Linux/OS X systems. Since you’re running Windows, you’ll need to use PuTTy gen to generate the SSH keys and PuTTy to SSH into your Droplet.
Check out this tutorial:
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.