#必须要先赋权,在此特别提醒 ssh-keygen -t rsa -P '' cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys chmod 644 authorized_keys