<!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> </div>
<div>What I did:<br></div>
<div> </div>
<div><u>As root</u>:<br></div>
<div> </div>
<div>Add user "name"<br></div>
<div> /usr/sbin/adduser name<br></div>
<div>Create password</div>
<div> passwd name<br></div>
<div> [created the password]<br></div>
<div>Give root permissions</div>
<div> sudo nano /etc/sudoers<br></div>
<div> [added the line name ALL=(All) ALL<br></div>
<div>Re-enabled password authentication in sshd_config and restarted sshd</div>
<div> </div>
<div><u>As the new user "name"</u>:<br></div>
<div> </div>
<div>made directory<br></div>
<div> mkdir ./ssh</div>
<div>created file and added public key to file authorized keys<br></div>
<div> sudo nano ~/.ssh/authorized_keys<br></div>
<div> [entered the public key (which I call a "lock")]<br></div>
<div>updated permissions "just in case"</div>
<div> chmod 700 ~/.ssh<br></div>
<div> chmod 600 ~/.ssh/authorized_keys<br></div>
<div> </div>
<div>tried to login with the private key<br></div>
<div> Result: server refused the key.<br></div>
<div> </div>
<div>Any idea what I'm doing wrong?<br></div>
</body>
</html>