ssh password-free not working problem

The problem of ssh password-free does not work.
Others cannot log in automatically. Check first to see if you can log in yourself.
Generally, it may be a problem of file permissions.

   64 ssh-keygen -t rsa
   65 ls
   66 cat authorized_keys
   67 ssh-keygen -t rsa -P ' ' -f id_rsa
   68 cat id_rsa.pub >> authorized_keys
   69 ssh localhost
   70 chown admin: /home/admin/.ssh
   71 chown admin: /home/admin/.ssh/*
   72 chmod 700 /home/admin/.ssh/
   73 chmod 700 /home/admin/.ssh
   74 chmod 600 /home/admin/.ssh/*

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326493822&siteId=291194637