<p dir="ltr">Maybe you added one or more line breaks to the ssh key?</p>
<p dir="ltr">Try a "wc" on the key on both client and server.</p>
<p dir="ltr">Or check your sshd_config and make sure keys are allowed.<br>
"ssh -vvv" is good for debugging.<br>
</p>
<div class="gmail_quote">On May 10, 2015 10:27 PM, "Steve VanSlyck" <<a href="mailto:s.vanslyck@postpro.net">s.vanslyck@postpro.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><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>
</div>
<br>_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
<br></blockquote></div>