What's new

ssh public key authentication stops working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

rigstars2

Occasional Visitor
after I copy the .pub key using the sshcopyid command.. I also use ssh agent to store my private key. I delete the identity once I’m done ssh’ing. Authentication works fine but after the router reboots..its breaks.. and then I have to copy the .pub again even though it already exists on server.

let me know what you need to assist troubleshooting?

permissions
.ssh directory 700
public 644
private 600

server
——
.ssh 700
authorized_keys 644
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top