For this tutorial: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
I do not understand step 2: It says: Once you have entered the Gen Key command, you will get a few more questions: Enter file in which to save the key (/home/demo/.ssh/id_rsa):
So where is this “file”. I created a file path on my home computer under “my documents”, but nothing was created in that folder. Is the “file” the key is saved to on the Ubuntu server? This step needs clarification.
instead of “demo” I named my user after me: matthewtae
So I typed: (/home/matthewtae/.ssh/idrsa) I receive the message: No such file or directory. Saving the key failed: (/home/matthewtae/.ssh/idrsa).
Soooo… the tutorial needs to be clearer about that step, where to “save the key” to. Where am I actually saving the key to? To my local hard drive that is sitting on my desk? Or to some place on the server?
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!
You generate the key on your local computer. It will create two different files. A public key and a secret key. The public one is what you add in the DigitalOcean control panel.
When you are presented with the prompt:
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/localuser/.ssh/id_rsa):
You can either type out the full path to a file where you’d like to save the key file or you can simply press enter and it use the default path, which is what is shown in parentheses.
Check out this tutorial for a more detailed look:
This comment has been deleted
I followed the instructions in the link you posted, i.e. just hit “enter” when a file path is requested. However, the result is not the same. The tutorial say the file path should be: Your identification has been saved in /home/username/.ssh/id_rsa. Your public key has been saved in /home/username/.ssh/id_rsa.pub. The key fingerprint is: a9:49:2e:2a:5e:33:3e:a9:de:4e:77:11:58:b6:90:26 username@remote_host The key’s randomart image is: ±-[ RSA 2048]----+ | …o | | E o= . | | o. o | | … | | …S | | o o. | | =o.+. | |. =++… | |o=++. | ±----------------+
However, in my screenshot here, the “Your identification has been saved in…” is different: https://www.flickr.com/photos/43326914@N06/16396580278/
Something is wrong here. Where is the SSH key? I can’t find it on my hard drive.
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.