<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>My new user (me) can't log on via SSH. Can someone look this over and tell me what super basic thing I've done wrong?</div>
<div>&nbsp;</div>
<div>What I did:<br></div>
<div>&nbsp;</div>
<div><u>As root</u>:<br></div>
<div>&nbsp;</div>
<div>Add user "name"<br></div>
<div>&nbsp; &nbsp; &nbsp;/usr/sbin/adduser name<br></div>
<div>Create password</div>
<div>&nbsp; &nbsp; &nbsp;passwd name<br></div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [created the password]<br></div>
<div>Give root permissions</div>
<div>&nbsp; &nbsp; &nbsp;sudo nano /etc/sudoers<br></div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [added the line name ALL=(All) ALL<br></div>
<div>Re-enabled password authentication in sshd_config and restarted sshd</div>
<div>&nbsp;</div>
<div><u>As the new user "name"</u>:<br></div>
<div>&nbsp;</div>
<div>made directory<br></div>
<div>&nbsp; &nbsp; &nbsp;mkdir ./ssh</div>
<div>created file and added public key to file authorized keys<br></div>
<div>&nbsp; &nbsp; &nbsp;sudo nano ~/.ssh/authorized_keys<br></div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [entered the public key (which I call a "lock")]<br></div>
<div>updated permissions "just in case"</div>
<div>&nbsp; &nbsp; &nbsp;chmod 700 ~/.ssh<br></div>
<div>&nbsp; &nbsp; &nbsp;chmod 600 ~/.ssh/authorized_keys<br></div>
<div>&nbsp;</div>
<div>tried to login with the private key<br></div>
<div>&nbsp; &nbsp; &nbsp;Result: server refused the key.<br></div>
<div>&nbsp;</div>
<div>Any idea what I'm doing wrong?<br></div>
</body>
</html>