Rank Beginner Trying CentOS 7
I am an iMac user unfamiliar with the command line. Although I have attempted many times to get my ssh-key (public) pasted onto my server it doesn't put more than a snippet of the key into the file using Nano to copy/paste. Also, I am unfamiliar with Nano when using it for this. I also tried an upload of the public key following instructions from the internet here (https://www.theinoob.com/2014/10/connect-mac-centos-using-ssh-privatepublic-keys/) and something unknown went wrong. Being so new I find the nomenclature ot be all over the map on the internet sites with some saying superuser is "su" while I use "sudo" for centOS. Not sure where to go from here but am weary of creating one after the other new server. I would appreciate any help because this, for now, is the only thing holding me back. Thanks in advance.
1 Reply
Hey there,
Sorry to see you're having problems uploading your pubkey to your Linode. You should be able to use the scp command to upload your pubkey.
From your local computer:
ssh-copy-id example_user@$IPaddress_of_linode
On your Linode (while signed in as your limited user):
mkdir -p ~/.ssh && sudo chmod -R 700 ~/.ssh/
From your local computer:
scp ~/.ssh/id_rsa.pub example_user@$IPaddress_of_linode:~/.ssh/authorized_keys
More information about uploading your pubkey, how to generate one, and other basic security steps you should to take, can be found in our How to Secure Your Server guide.