I have run into a problem setting up a new LAMP installation i setup on a droplet. (Keep in mind in am using the digital ocean console)
I am doing this tutorial specifically, and i am stuck on step four. I stopped at the instruction below because copy and paste don’t work on the console.
***Now open a file in .ssh called authorized_keys with a text editor. We will use nano to edit the file:
Now insert your public key (which should be in your clipboard) by pasting it into the editor.
Hit CTRL-x to exit the file, then y to save the changes that you made, then ENTER to confirm the file name.***
What i did instead was login with filezilla using sftp and downloaded the key. i went in to the folder that i had created in console (/home/seyi/.ssh) and then dropped the text file i created in the folder. (i wasn’t sure if the file was supposed to be in .txt. or .pub so i put them both in the folder)
There was no way to know if it worked so i went back to console and did;
$ chmod 600 ~/.ssh/authorized_keys
That pulled an error: chmod: cannot access '/home/seyi/.ssh/authorized keys : No such file or directory.
Later i came back and tried $sudo apt-get update
entered the password and the got the error below “seyi is not in the sudoers file. the incident will be reported.”
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.