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
I tried to make keys instead of password
I have ubuntu 16.04
I have disabled root login.
I have a user with sudo.
I made an ssh authentication key pair:
I tried to scp my public key but was told that the file doesnt exist.
I copied the public key to text edit on my mac.
I pasted it into a file I created in .ssh called authorizedkeys.
A file called authorized also appeared.
I changed the permissions in sshdconfig to allow authorized keys and not allow password login.
I chmod 400 authorized keys and authorized.
I chmod 700 .ssh
The long and the short of it is that I cant get into my server, no password, no root, no keys, I dont even get aske for my phrase.
I hope I’m not completely stuffed cos I really dont want to destroy my droplet and start again.
In case its not painfully obvious I am a complete noob and just working from a book so super easy answers would be appreciated.
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.×