Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
For a fresh install of CentOS 6.4 64-bit, I had to use “vim” wherever “vi” appears to edit files and I used this comment to restart sshd:
sudo service sshd restart
Otherwise, very helpful. Thanks!
You mean by means of sudo nano ~/.ssh/authorized_keys? Yes, I did that.
Strangely, it’s accepting my ‘user’ but not my key. I don’t have to type my username but still have to type my password to logon.
@Nicholas: Hmm. Can you please pastebin the contents of ~/.ssh/authorized_keys?
question. do i sudo nano ~/.ssh/authorized_keys in the root directory or do i do that in /home/user/?
@Nicholas: /home/user/. Also, what’s the output of <code>wc -l /home/user/.ssh/authorized_keys</code>?
@Nicholas: I was having the same issue as you (“server refused our key” in PuTTY). I followed the steps of this article as a user with root access in CentOS 6. To be able to log in, I had to set the permissions of ~/.ssh to 755 instead of 700. In other words: sudo chmod 755 ~/.ssh sudo chmod 644 ~/.ssh/authorized_keys
@Kamal: Is the above acceptable? Or does it pose a risk, compared to setting the permissions of ~/.ssh to 700?
@i3ringit: See <a href=“http://wiki.centos.org/HowTos/Network/SecuringSSH#head-9c5717fe7f9bb26332c9d67571200f8c1e4324bc”>http://wiki.centos.org/HowTos/Network/SecuringSSH#head-9c5717fe7f9bb26332c9d67571200f8c1e4324bc</a> for more info on what the permissions should be.