I want to build a CentOS7 server by myself.
Now I already followed the steps mentioned in this link: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-centos-7, which includes
- generated my new key .pub file using keygen.
- add its content start with "ssh-rsa" to .ssh/authorized_keys
- chmod the key and the .ssh folder,
- configure sshd using
systemctl reload sshdto restart sshd.
At this point, I thought the future ssh operations from my client host should already need the key to do the log in. However, at this point I can still using ssh to log in my server with only password.
Are there any special procedure that I miss?